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

« back to all changes in this revision

Viewing changes to bin/ivle-showenrolment

  • Committer: Matt Giuca
  • Date: 2009-05-19 02:54:08 UTC
  • mfrom: (1258 trunk)
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: matt.giuca@gmail.com-20090519025408-19c7cjl7w6ot6frm
MergedĀ fromĀ trunk.

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: