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

« back to all changes in this revision

Viewing changes to bin/ivle-cloneworksheets

  • 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:
22
22
import sys
23
23
 
24
24
from ivle.database import get_store, Subject, Semester, Offering, Worksheet
25
 
import ivle.worksheet
 
25
import ivle.worksheet.utils
26
26
 
27
27
def die(error):
28
28
    print >> sys.stderr, '%s: %s' % (os.path.basename(sys.argv[0]), error)
63
63
    newws.format = oldws.format
64
64
    newws.offering = dst
65
65
    store.add(newws)
66
 
    ivle.worksheet.update_exerciselist(newws)
 
66
    ivle.worksheet.utils.update_exerciselist(newws)
67
67
 
68
68
print >> sys.stderr, 'copied %d worksheets from %r to %r' \
69
69
                     % (dst.worksheets.count(), src, dst)