Update of /cvsroot/webware/Webware/MiddleKit/Run
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14756/Run
Modified Files:
SQLObjectStore.py
Log Message:
- make fooClassId SQL columns default to the target class of the
obj ref attr
- add error checking when loading a model that the target class
of an obj ref attr actually exists
Index: SQLObjectStore.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiddleKit/Run/SQLObjectStore.py,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** SQLObjectStore.py 24 Feb 2004 02:04:13 -0000 1.60
--- SQLObjectStore.py 28 Feb 2004 03:13:09 -0000 1.61
***************
*** 829,833 ****
# this does *not* get called under the old approach of single obj ref columns. see MiddleObject.readStoreData
classId, objId = row[i], row[i+1]
! if classId is None:
value = None
else:
--- 829,833 ----
# this does *not* get called under the old approach of single obj ref columns. see MiddleObject.readStoreData
classId, objId = row[i], row[i+1]
! if objId is None:
value = None
else:
|