|
From: <de...@us...> - 2003-09-10 02:09:04
|
Update of /cvsroot/pymerase/pymerase/pymerase/output
In directory sc8-pr-cvs1:/tmp/cvs-serv10594
Modified Files:
CreateDBAPI.py
Log Message:
take advantage of new information about which association end has
foreign key.
Index: CreateDBAPI.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/pymerase/output/CreateDBAPI.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** CreateDBAPI.py 25 Apr 2003 23:55:36 -0000 1.30
--- CreateDBAPI.py 10 Sep 2003 02:09:01 -0000 1.31
***************
*** 203,209 ****
init.append(u" import %s" % (otherEnd.getType().getName(TRANSLATOR_NAME)))
! init.append(u" self.associations[\"%s\"] = DBAssociation(self, %s, %s)" % (
otherEnd.getName(SQL_TRANSLATOR_NAME),
otherEnd.getType().getName(TRANSLATOR_NAME),
otherEnd.getMultiplicity()
))
--- 203,210 ----
init.append(u" import %s" % (otherEnd.getType().getName(TRANSLATOR_NAME)))
! init.append(u" self.associations[\"%s\"] = DBAssociation(self, %s, %s, %s)" %(
otherEnd.getName(SQL_TRANSLATOR_NAME),
otherEnd.getType().getName(TRANSLATOR_NAME),
+ otherEnd.hasForeignKey(),
otherEnd.getMultiplicity()
))
***************
*** 350,354 ****
classAssociationEnds = classMetaInfo.getAssociationEnds().values()
classAttributes = classMetaInfo.getAttributes()
! classFilename = classMetaInfo.filename
# FIXME: the second element in this tuple needs to contain the package
--- 351,355 ----
classAssociationEnds = classMetaInfo.getAssociationEnds().values()
classAttributes = classMetaInfo.getAttributes()
! classFilename = classMetaInfo.getFilename()
# FIXME: the second element in this tuple needs to contain the package
|