~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to scripts/usrmgt-server

  • Committer: drtomc
  • Date: 2008-02-14 03:38:20 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:456
usrmgt-server: a bit more work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
       Return Value: the uid associated with the user. INT
54
54
    """
55
55
 
56
 
    if 'uid' not in props:
 
56
    if 'uid' not in props or props['uid'] is None:
57
57
        raise Exception, "No algorithm for creating uids yet!"
58
58
        # uid = invent-uid
59
59
        # props['uid'] = uid
77
77
                      in the jail. If not supplied (or None), then the uid is
78
78
                      also used.
79
79
                      INT OPTIONAL
 
80
       Return Value: None
80
81
    """
81
 
    common.makeuser.make_jail(props['username'], props['uid'])
 
82
 
 
83
    if 'gid' not in props or props['gid'] is None:
 
84
        gid = props['uid']
 
85
 
 
86
    common.makeuser.make_jail(props['username'], props['uid'], gid)
 
87
 
82
88
    return None
83
89
 
84
90
actions = {