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

« back to all changes in this revision

Viewing changes to ivle/worksheet/utils.py

Cache worksheet and exercise rST-generated XHTML in the DB, accelerating rendering by up to 2000%.

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
    exercises = []
259
259
    # Turns the worksheet into an xml stream, and then finds all the 
260
260
    # exercise nodes in the stream.
261
 
    worksheetdata = genshi.XML(worksheet.get_xml())
 
261
    worksheetdata = genshi.XML(worksheet.data_xhtml)
262
262
    for kind, data, pos in worksheetdata:
263
263
        if kind is genshi.core.START:
264
264
            # Data is a tuple of tag name and a list of name->value tuples