Example #1
0
 def __init__(self, db, name, id):
     docxml = xmlReader(name)
     self.table = docxml.fillTable()
     self.schema = docxml.getScheme()
     self.id = docxml.getId()
     self.name = name
     self.db = db
     self.SessionId = id  ## identifier used by db for the locks
Example #2
0
 def rollback(self):
     """ discard all recent changes, back to previous table version (still in xml file) """
     docxml = xmlReader(self.name)
     self.table = docxml.fillTable()
     self.schema = docxml.getScheme()
     self.id = docxml.getId()