Fix group modification code
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Mon, 7 Jan 2008 18:55:47 +0000 (13:55 -0500)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Mon, 7 Jan 2008 18:55:47 +0000 (13:55 -0500)
ceo/urwid/groups.py
ceo/urwid/main.py

index 47ffa35..c4ec19a 100644 (file)
@@ -112,7 +112,7 @@ class EndPage(WizardPanel):
         data = self.state['data']
         action = data['action'].lower()
         failed = []
-        for group in data['groups']:
+        for group in data['groups'] + [data['group']]:
             try:
                 members.change_group_member(action, group, self.state['userid'])
             except ldap.LDAPError:
index 9d26d28..f34f190 100644 (file)
@@ -43,7 +43,7 @@ def program_name():
 office_data = {
     "name" : "Office Staff",
     "group" : "office",
-    "groups" : [ "office", "cdrom", "audio", "video", "www" ],
+    "groups" : [ "cdrom", "audio", "video", "www" ],
 }
 
 syscom_data = {