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

« back to all changes in this revision

Viewing changes to bin/ivle-enrolallusers

  • Committer: William Grant
  • Date: 2009-01-20 00:58:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1090.
  • Revision ID: grantw@unimelb.edu.au-20090120005853-s6uyy950m4oeaukl
ivle.pulldown_subj.enrol_user: Actually allow year to be None, and set it
    to the current year if it is.
bin/ivle-enrolallusers: Don't override the year if none is specified;
    enrol_user does that for us.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
import pwd
34
34
import optparse
35
35
import logging
36
 
import datetime
37
36
 
38
37
import ivle.database
39
38
import ivle.pulldown_subj
70
69
    logging.error("Year must be numeric")
71
70
    sys.exit(1)
72
71
 
73
 
if options.year is None:
74
 
    options.year = datetime.datetime.now().year
75
 
 
76
72
options.year = unicode(options.year)
77
73
 
78
74
for user in users: