Bugzilla – Attachment 365 Details for
Bug 631
Extended shadowing control: teachers should be able to shadow students
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script that sets allowed_shadowers from a group
allowed-shadowers-from-group (text/plain), 436 bytes, created by
Peter Åstrand
on 2010-06-09 09:48:12 CEST
(
hide
)
Description:
Script that sets allowed_shadowers from a group
Filename:
MIME Type:
Creator:
Peter Åstrand
Created:
2010-06-09 09:48:12 CEST
Size:
436 bytes
patch
obsolete
>#!/usr/bin/env python-thinlinc ># -*-mode: python; coding: utf-8 -*- > >import os >import sys >import grp >sys.path = ["/opt/thinlinc/modules"] + sys.path >from thinlinc import ctccommon >import hiveconf > >hive = hiveconf.open_hive(os.path.join(ctccommon.get_tl_prefix(), > "etc/thinlinc.hconf")) > >groups = grp.getgrnam("tl-allowed-shadowers")[3] >hive.set_string_list("/vsmserver/allowed_shadowers", groups)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 631
: 365