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

« back to all changes in this revision

Viewing changes to bin/ivle-makeuser

  • Committer: William Grant
  • Date: 2009-05-28 02:43:56 UTC
  • Revision ID: grantw@unimelb.edu.au-20090528024356-mlrhizz7omnr71hd
Test ivle.mimetypes.nice_filetype.

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
 
store = get_store(Config())
 
84
config = Config()
 
85
store = get_store(config)
85
86
 
86
87
try:
87
88
    # Make the user's database entry
88
89
    userobj = User(**user)
89
90
    store.add(userobj)
90
 
    enrol_user(store, userobj)
 
91
    enrol_user(config, store, userobj)
91
92
    store.commit()
92
93
except Exception, message:
93
94
    print "Error: " + str(message)