Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv23036
Modified Files:
EditingContext.py
Log Message:
Fixed: buggy test_12a_fetchesRawRows() in test_EC_parentChild did not detect that fetching raw rows were not reflecting the changes in the parent
Index: EditingContext.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/EditingContext.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** EditingContext.py 16 Jul 2003 19:16:00 -0000 1.26
--- EditingContext.py 17 Jul 2003 15:16:28 -0000 1.27
***************
*** 1243,1246 ****
--- 1243,1256 ----
objects=self.parentObjectStore().objectsWithFetchSpecification(fs, ec)
+ if ec.isaChildOf(self) and fs.fetchesRawRows():
+ # filter the returned raw rows: we'd better replace the modified objects
+ # with our own version
+ fs_entityName=fs.entityName()
+ copy_objects=list(objects)
+ for o in copy_objects:
+ self_obj=self.faultForRawRow(o, fs_entityName)
+ if not self_obj.isFault():
+ objects[objects.index(o)]=self_obj.snapshot_raw()
+
if ec is self or ec.isaChildOf(self):
entitiesNames=[fs.entityName()]
|