Changeset 382
- Timestamp:
- 01/09/07 07:18:41
- Files:
-
- trunk/storage/db.py (modified) (2 diffs)
- trunk/test/zoo_fixture.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/storage/db.py
r381 r382 782 782 for cname, c in table.iteritems(): 783 783 ptype = self.db.python_type(c.dbtype) 784 if ptype == int and c.hints.get('bytes') in (1, '1'): 785 # This is probably a bool 786 ptype = bool 787 del c.hints['bytes'] 784 788 p = AutoUnitClass.set_property(cname, ptype) 785 789 if c.autoincrement: … … 830 834 for cname, c in table.iteritems(): 831 835 ptype = self.db.python_type(c.dbtype) 836 if ptype == int and c.hints.get('bytes') in (1, '1'): 837 # This is probably a bool 838 ptype = bool 839 del c.hints['bytes'] 840 832 841 mod = ptype.__module__ 833 842 if mod == '__builtin__': trunk/test/zoo_fixture.py
r381 r382 1203 1203 self.assertIn(source, " sequencer = UnitSequencer()") 1204 1204 1205 if not (" identifiers = ('ZooID', 'Name')" in source1206 or " identifiers = ('Name', 'ZooID')" in source):1205 if not (" identifiers = ('ZooID', 'Name')".lower() in source.lower() 1206 or " identifiers = ('Name', 'ZooID')".lower() in source.lower()): 1207 1207 self.fail("%r not found in %r" % 1208 1208 (" identifiers = ('ZooID', 'Name')", source))
