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

« back to all changes in this revision

Viewing changes to bin/ivle-enrol

  • 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
from ivle.config import Config
28
29
from ivle.database import get_store, Subject, Semester, Offering, User
29
30
 
30
31
def die(error):
39
40
                         % os.path.basename(sys.argv[0])
40
41
    sys.exit()
41
42
 
42
 
store = get_store()
 
43
store = get_store(Config())
43
44
 
44
45
user = User.get_by_login(store, sys.argv[1])
45
46
if user is None: