Mario Ruggier
2003-12-21 15:59:00 UTC
Hello!
I would like to use custom FixedPoint values for an attribute of an
object.
So, I do as the example in Chapter 9 of the userguide suggests... so I
define
the "private" methods obj._setX(val) and obj._getX(). However, when the
client code calls the corresponding public setX and getX methods, the
private ones are never called! Any ideas what I may be missing out on?
I am using 0.9-pre-16 of modeling plus bug862182.patch
(no other patches I think).
Another small point: the example _get method in:
<http://modeling.sourceforge.net/UserGuide/attribute-custom-type-
example.html>
should surely read:
if not self._price:
return None
as opposed to (if self._price: ... )
Cheers, mario
I would like to use custom FixedPoint values for an attribute of an
object.
So, I do as the example in Chapter 9 of the userguide suggests... so I
define
the "private" methods obj._setX(val) and obj._getX(). However, when the
client code calls the corresponding public setX and getX methods, the
private ones are never called! Any ideas what I may be missing out on?
I am using 0.9-pre-16 of modeling plus bug862182.patch
(no other patches I think).
Another small point: the example _get method in:
<http://modeling.sourceforge.net/UserGuide/attribute-custom-type-
example.html>
should surely read:
if not self._price:
return None
as opposed to (if self._price: ... )
Cheers, mario