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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/__init__.py

  • Committer: William Grant
  • Date: 2009-03-18 00:12:26 UTC
  • mfrom: (1164 trunk)
  • mto: This revision was merged to the branch mainline in revision 1290.
  • Revision ID: grantw@unimelb.edu.au-20090318001226-fm6rh01lfezetk3x
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
        # the exercise cannot be deleted
543
543
        if req.method == 'POST':
544
544
            ctx['method'] = 'POST'
545
 
            ctx['deleted'] = self.context.delete(req.store)
 
545
            try:
 
546
                self.context.delete()
 
547
                ctx['deleted'] = True
 
548
            except:
 
549
                ctx['deleted'] = False
546
550
 
547
551
        # If get, display a delete confirmation page
548
552
        else: