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

« back to all changes in this revision

Viewing changes to lib/common/makeuser.py

  • Committer: mattgiuca
  • Date: 2008-02-05 05:53:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:416
Propagated the addition of "unixid" to login table down the code chain.
makeuser.py: Passes uid to makeuser.make_user_db.
makeuser.make_user_db: Added uid argument. Passes to db.create_user.
db: create_user: Added unixid argument. Inserts into table.
    get_user: Returns unixid in the dictionary. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
    if errors:
166
166
        raise Exception, errors
167
167
 
168
 
def make_user_db(login, password, nick, fullname, rolenm, studentid,
 
168
def make_user_db(login, uid, password, nick, fullname, rolenm, studentid,
169
169
    force=True):
170
170
    """Creates a user's entry in the database, filling in all the fields.
171
171
    If force is False, throws an exception if the user already exists.
178
178
            dbconn.delete_user(login)
179
179
        except:
180
180
            pass
181
 
    dbconn.create_user(login, password, nick, fullname, rolenm, studentid)
 
181
    dbconn.create_user(login, uid, password, nick, fullname, rolenm,
 
182
        studentid)
182
183
    dbconn.close()