Commits

Anthony Tuininga committed f3e75ea

Added support for setting the table on the row class, not just the data set, as
a convenience.

  • Participants
  • Parent commits 9794b0a

Comments (0)

Files changed (1)

File ceDatabase.py

     pkAttrNames = []
     useSlots = True
     sortReversed = False
+    tableName = None
 
     def __repr__(self):
         reprAttrNames = self.reprAttrNames or self.attrNames
             cls.rowClass = RowMetaClass("%sRow" % name, (Row,), classDict)
         cls.attrNames = cls.rowClass.attrNames
         cls.pkAttrNames = cls.rowClass.pkAttrNames
+        if cls.tableName is None:
+            cls.tableName = cls.rowClass.tableName
         if isinstance(cls.uniqueAttrNames, basestring):
             cls.uniqueAttrNames = cls.uniqueAttrNames.split()
         if isinstance(cls.insertAttrNames, basestring):