Author: jamest
Date: 2006-11-15 10:54:00 -0600 (Wed, 15 Nov 2006)
New Revision: 249
Modified:
objectWrapper/src/ObjectWrapper.py
Log:
added an assert to block my obsession for using _primaryKey instead of
_primaryKeys
Modified: objectWrapper/src/ObjectWrapper.py
===================================================================
--- objectWrapper/src/ObjectWrapper.py 2006-11-14 14:58:20 UTC (rev 248)
+++ objectWrapper/src/ObjectWrapper.py 2006-11-15 16:54:00 UTC (rev 249)
@@ -68,6 +68,8 @@
def __init__(self, connections = None):
+ assert not(hasattr(self,'_primaryKey')), '_primaryKey var should be
_primaryKeys'
+
#
--------------------------------------------------------------------------
# Base attributes
#
--------------------------------------------------------------------------
@@ -344,6 +346,7 @@
# (db triggers, default field values, etc)
#
--------------------------------------------------------------------------
for instanceField, settings in self._fieldMap.items():
+
tableField = settings['tableField']
oldValue = getattr(self, instanceField)
newValue = self._recordSet[tableField]
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue