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

« back to all changes in this revision

Viewing changes to bin/ivle-showenrolment

  • Committer: William Grant
  • Date: 2009-04-28 08:17:26 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428081726-7h8fyjclxtydjma0
No more ivle.conf in ivle.webapp.fileservice...

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import os
26
26
import sys
27
27
 
 
28
import ivle.config
28
29
import ivle.database
29
30
 
30
31
if len(sys.argv) != 2:
31
32
    print >> sys.stderr, "usage: %s <login>" % os.path.basename(sys.argv[0])
32
33
    sys.exit(1)
33
34
 
34
 
store = ivle.database.get_store()
 
35
store = ivle.database.get_store(ivle.config.Config())
35
36
user = ivle.database.User.get_by_login(store, sys.argv[1])
36
37
 
37
38
if not user: