Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv30002
Modified Files:
Entity.py
Log Message:
Fixed attributesToFetch(): was omitting any FK involved in a to-many-relationship (with no inverse) declared in an other entity
Index: Entity.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Entity.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Entity.py 24 Jul 2003 17:02:34 -0000 1.16
--- Entity.py 27 Jul 2003 17:00:34 -0000 1.17
***************
*** 257,262 ****
def attributes(self):
"""
! Returns the full set of attributes ; it is returned as a dictionary
! where keys are 'attributeName's and values, 'Attribute' instances.
"""
return self._attributes.values()
--- 257,261 ----
def attributes(self):
"""
! Returns the full set of attributes
"""
return self._attributes.values()
***************
*** 272,281 ****
into at least one of these categories:
! - they are primary keys,
!
! - they are ``used for locking''
!
! - they are class' properties
!
- they are source attributes of a relationship
--- 271,276 ----
into at least one of these categories:
! - they are not derived,
!
- they are source attributes of a relationship
***************
*** 295,301 ****
for attribute in self.attributesUsedForLocking():
append(attribute, attributesToFetch); continue
! # ClassProperties
for attribute in self.attributes():
! if attribute.isClassProperty():
append(attribute, attributesToFetch); continue
--- 290,296 ----
for attribute in self.attributesUsedForLocking():
append(attribute, attributesToFetch); continue
! # non derived
for attribute in self.attributes():
! if not attribute.isDerived():
append(attribute, attributesToFetch); continue
|