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

« back to all changes in this revision

Viewing changes to www/apps/tutorial/__init__.py

  • Committer: stevenbird
  • Date: 2008-02-19 03:59:20 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:502
www/apps/tutorialservice/__init__.py
* changed name from "Problem" to "Exercise"

www/apps/tutorialservice/test/parse_tute.py,TestFramework.py
* changed "succeed" to "pass" for consistency
* added code_test functionality to TestCasePart
* added check_code to run normalisations and comparisons
  on code instead of output
* extended solution_data and attempt_data dictionaries to
  include the code
* still broken with an error on line 423 of TestFramework.py
  (the function supplied in the XML file for testing the code
  can't be called?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
                problempartial= getTextData(elem) + '\n'
307
307
 
308
308
    # Print this problem out to HTML 
309
 
    req.write("<p><b>Problem:</b> %s</p>\n" % problemname)
 
309
    req.write("<p><b>Exercise:</b> %s</p>\n" % problemname)
310
310
    if problemdesc is not None:
311
311
        req.write("<div>%s</div>\n" % problemdesc)
312
312
    req.write('<textarea class="problembox" cols="80" rows="12">%s</textarea>'