Update of /cvsroot/modeling/ProjectModeling/Modeling/interfaces
In directory sc8-pr-cvs1:/tmp/cvs-serv30582/interfaces
Modified Files:
ObjectStoreInterface.py
Log Message:
Added the ability to fetch raw rows (dictionaries instead of fully
intialized objects) --see FetchSpecification.setFetchesRawRows() and
EditingContext.fetch() 's parameter 'rawRows'. Also added the possibility
to turn these rows into real objects --see EditingContext.faultForRawRow()
Index: ObjectStoreInterface.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/ObjectStoreInterface.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ObjectStoreInterface.py 14 Mar 2003 11:40:12 -0000 1.5
--- ObjectStoreInterface.py 16 Jul 2003 19:16:00 -0000 1.6
***************
*** 125,128 ****
--- 125,142 ----
def faultForRawRow(self, aRow, anEntityName, anEditingContext):
"""
+ Turns a row (dictionary) into a real object. Any row, such as the one
+ returned by a fetch when raw rows is actvated, can be turned into a
+ real object given that it contains the primary keys.
+
+ Parameters:
+
+ row -- a dictionary. This dictionary should have the entity's primary
+ keys in its keys (and their corresponding values)
+
+ entityName -- the name of the entity the row represents
+
+ anEditingContext -- The EditingContext in which the object should be
+ registered.
+
"""
|