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

« back to all changes in this revision

Viewing changes to bin/ivle-cloneworksheets

  • Committer: Matt Giuca
  • Date: 2010-07-22 02:12:36 UTC
  • mfrom: (1812.1.13 late-submit)
  • Revision ID: matt.giuca@gmail.com-20100722021236-k8kt4cqdtywzpk24
Merge from trunk late-submit.
Students may now submit projects after the deadline, but they are warned that the submission is late.
Lecturers are now given data on which submissions were made late, and how many days.
(LP: #598346)

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
if dst.worksheets.count() > 0:
55
55
    die('%r already has worksheets - doing nothing' % dst)
56
56
 
57
 
for oldws in src.worksheets:
58
 
    newws = Worksheet()
59
 
    newws.seq_no = oldws.seq_no
60
 
    newws.identifier = oldws.identifier
61
 
    newws.name = oldws.name
62
 
    newws.assessable = oldws.assessable
63
 
    newws.data = oldws.data
64
 
    newws.format = oldws.format
65
 
    newws.offering = dst
66
 
    store.add(newws)
67
 
    ivle.worksheet.utils.update_exerciselist(newws)
 
57
dst.clone_worksheets(src)
68
58
 
69
59
print >> sys.stderr, 'copied %d worksheets from %r to %r' \
70
60
                     % (dst.worksheets.count(), src, dst)