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

« back to all changes in this revision

Viewing changes to bin/ivle-makeuser

  • Committer: William Grant
  • Date: 2009-04-28 08:15:26 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428081526-5ywomupdxin87qil
Get all configuration information from req in ivle.webapp.media.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
if 'nick' not in user:
82
82
    user['nick'] = user['fullname']
83
83
 
84
 
config = Config()
85
 
store = get_store(config)
 
84
store = get_store(Config())
86
85
 
87
86
try:
88
87
    # Make the user's database entry
89
88
    userobj = User(**user)
90
89
    store.add(userobj)
91
 
    enrol_user(config, store, userobj)
 
90
    enrol_user(store, userobj)
92
91
    store.commit()
93
92
except Exception, message:
94
93
    print "Error: " + str(message)