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

« back to all changes in this revision

Viewing changes to bin/ivle-showenrolment

  • Committer: Matt Giuca
  • Date: 2009-03-24 08:03:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: matt.giuca@gmail.com-20090324080353-1w4oduwp7elujgs8
Fleshed out the documentation structure a bit.
Added a high-level description of the system on the front page, and 'dev' and
'man' sections.

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