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

« back to all changes in this revision

Viewing changes to bin/ivle-enrol

  • Committer: William Grant
  • Date: 2009-04-28 05:06:00 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428050600-hogd9d6wo7ksyqy8
ivle.database.get_store() now takes a configuration object.

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: