~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: 2010-02-24 12:43:14 UTC
  • Revision ID: grantw@unimelb.edu.au-20100224124314-n9ekeytii2ainwa8
Don't hide global form errors on worksheet forms.

Show diffs side-by-side

added added

removed removed

Lines of Context:
360
360
        ctx['data'] = data or {}
361
361
        ctx['offering'] = self.context
362
362
        ctx['errors'] = errors
 
363
        # If all of the fields validated, set the global form error.
 
364
        if isinstance(errors, basestring):
 
365
            ctx['error_value'] = errors
363
366
        ctx['formats'] = WORKSHEET_FORMATS
364
367
 
365
368