[Modeling-cvs] ProjectModeling/Modeling/tests/testPackages/AuthorBooks model_AuthorBooks.xml,1.6,1.7
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-07-23 14:12:59
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests/testPackages/AuthorBooks In directory sc8-pr-cvs1:/tmp/cvs-serv3664/tests/testPackages/AuthorBooks Modified Files: model_AuthorBooks.xml Book.py Log Message: made Book.FK_Writer_Id a class property to support test for bug #775082 Index: model_AuthorBooks.xml =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/testPackages/AuthorBooks/model_AuthorBooks.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** model_AuthorBooks.xml 7 May 2003 11:27:10 -0000 1.6 --- model_AuthorBooks.xml 23 Jul 2003 14:12:56 -0000 1.7 *************** *** 27,31 **** <attribute isClassProperty='1' columnName='title' name='title' isRequired='1' precision='0' defaultValue='None' externalType='VARCHAR' width='40' scale='0' type='string' displayLabel='Title'/> <attribute isClassProperty='1' columnName='id' name='id' isRequired='1' precision='0' defaultValue='0' externalType='INT' width='0' scale='0' type='int' displayLabel=''/> ! <attribute isClassProperty='0' columnName='FK_WRITER_ID' name='FK_Writer_Id' isRequired='0' precision='0' defaultValue='None' externalType='INTEGER' width='0' scale='0' type='string' displayLabel=''/> <attribute isClassProperty='1' columnName='PRICE' name='price' isRequired='0' precision='10' defaultValue='None' externalType='NUMERIC' width='0' scale='2' type='float' displayLabel=''/> <relation deleteRule='0' isClassProperty='1' multiplicityUpperBound='1' multiplicityLowerBound='0' destinationEntity='Writer' name='author' displayLabel='' joinSemantic='0'> --- 27,31 ---- <attribute isClassProperty='1' columnName='title' name='title' isRequired='1' precision='0' defaultValue='None' externalType='VARCHAR' width='40' scale='0' type='string' displayLabel='Title'/> <attribute isClassProperty='1' columnName='id' name='id' isRequired='1' precision='0' defaultValue='0' externalType='INT' width='0' scale='0' type='int' displayLabel=''/> ! <attribute isClassProperty='1' columnName='FK_WRITER_ID' name='FK_Writer_Id' isRequired='0' precision='0' defaultValue='None' externalType='INTEGER' width='0' scale='0' type='int' displayLabel=''/> <attribute isClassProperty='1' columnName='PRICE' name='price' isRequired='0' precision='10' defaultValue='None' externalType='NUMERIC' width='0' scale='2' type='float' displayLabel=''/> <relation deleteRule='0' isClassProperty='1' multiplicityUpperBound='1' multiplicityLowerBound='0' destinationEntity='Writer' name='author' displayLabel='' joinSemantic='0'> Index: Book.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/testPackages/AuthorBooks/Book.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Book.py 27 Mar 2003 11:47:57 -0000 1.4 --- Book.py 23 Jul 2003 14:12:56 -0000 1.5 *************** *** 20,24 **** self._price=None self._author=None ! def entityName(self): "Used by the framework to link this object to its entity" --- 20,25 ---- self._price=None self._author=None ! self._FK_Writer_Id=None ! def entityName(self): "Used by the framework to link this object to its entity" *************** *** 34,37 **** --- 35,43 ---- return self._id + def getFK_Writer_Id(self): + "Return the Writer / firstName attribute value" + self.willRead() + return self._FK_Writer_Id + def getTitle(self): "Return the Book / title attribute value" *************** *** 62,66 **** self.willChange() self._price = price ! def validatePrice(self, value): "Edit this to enforce custom business logic" --- 68,72 ---- self.willChange() self._price = price ! def validatePrice(self, value): "Edit this to enforce custom business logic" |