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

« back to all changes in this revision

Viewing changes to ivle/database.py

  • Committer: Nick Chadwick
  • Date: 2009-03-10 12:46:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090310124634-nfylu5t95ox63bh9
Removed XML from database. RST now generates a full xml document, not
just a fragment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
        return perms
453
453
    
454
454
    def get_description(self):
455
 
        return "<div class='exercise_description'>" + \
456
 
                rst(self.description) + "</div>"
 
455
        return rst(self.description)
457
456
 
458
457
class Worksheet(Storm):
459
458
    __storm_table__ = "worksheet"
513
512
    def get_xml(self):
514
513
        """Returns the xml of this worksheet, converts from rst if required."""
515
514
        if self.format == u'rst':
516
 
            ws_xml = '<worksheet>' + rst(self.data) + '</worksheet>'
 
515
            ws_xml = rst(self.data)
517
516
            return ws_xml
518
517
        else:
519
518
            return self.data