~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-14 05:58:03 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:462
userdb/users.sql: Added email field to login.
Propagated the email field through: listusers, makeuser, common.makeuser,
    common.db.

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, uid, password, nick, fullname, rolenm, studentid,
169
 
    force=True):
 
168
def make_user_db(login, password, uid, email, nick, fullname, rolenm,
 
169
    studentid, 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.
172
172
    If True, overwrites the user's entry in the DB.
178
178
            dbconn.delete_user(login)
179
179
        except:
180
180
            pass
181
 
    dbconn.create_user(login, uid, password, nick, fullname, rolenm, studentid)
 
181
    dbconn.create_user(login, password, uid, email, nick, fullname, rolenm,
 
182
        studentid)
182
183
    dbconn.close()