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

« back to all changes in this revision

Viewing changes to ivle/worksheet/utils.py

  • Committer: William Grant
  • Date: 2009-03-17 04:48:07 UTC
  • mfrom: (1099.1.243 exercise-ui)
  • Revision ID: grantw@unimelb.edu.au-20090317044807-pozdt54fapazp2sp
Merge lp:~ivle-dev/ivle/exercise-ui.

Lecturers can now add and edit exercises, and worksheets can be written
in RST directly inside IVLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
    exercises = []
201
201
    # Turns the worksheet into an xml stream, and then finds all the 
202
202
    # exercise nodes in the stream.
203
 
    worksheetdata = genshi.XML(worksheet.data)
 
203
    worksheetdata = genshi.XML(worksheet.get_xml())
204
204
    for kind, data, pos in worksheetdata:
205
205
        if kind is genshi.core.START:
206
206
            # Data is a tuple of tag name and a list of name->value tuples