[Modeling-cvs] ProjectModeling/Modeling/tests/testPackages/AuthorBooks Book.py,1.5,1.6
Status: Abandoned
Brought to you by:
sbigaret
|
From: <sbi...@us...> - 2003-07-31 21:03:47
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests/testPackages/AuthorBooks
In directory sc8-pr-cvs1:/tmp/cvs-serv3997/Modeling/tests/testPackages/AuthorBooks
Modified Files:
Book.py
Log Message:
Added the necessary code to use FixedPoint for attribute price (code is commented but ready to be used)
Index: Book.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/testPackages/AuthorBooks/Book.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Book.py 23 Jul 2003 14:12:56 -0000 1.5
--- Book.py 31 Jul 2003 20:53:41 -0000 1.6
***************
*** 2,6 ****
--- 2,8 ----
from Modeling.CustomObject import CustomObject
from Modeling.Validation import ValidationException
+ #from fixedpoint import FixedPoint
+ #PRECISION=2
class Book (CustomObject):
***************
*** 21,25 ****
self._author=None
self._FK_Writer_Id=None
!
def entityName(self):
"Used by the framework to link this object to its entity"
--- 23,27 ----
self._author=None
self._FK_Writer_Id=None
!
def entityName(self):
"Used by the framework to link this object to its entity"
***************
*** 68,71 ****
--- 70,80 ----
self.willChange()
self._price = price
+ #self._price.precision=PRECISION
+
+ #def _setPrice(self, value):
+ # self._price = FixedPoint(value, PRECISION)
+ #
+ #def _getPrice(self):
+ # return str(self._price)
def validatePrice(self, value):
|