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

« back to all changes in this revision

Viewing changes to bin/ivle-makeuser

  • Committer: William Grant
  • Date: 2009-06-29 01:55:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: grantw@unimelb.edu.au-20090629015555-49xxv0piiieunx8e
Add docs on configuring Apache.

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)