[SQL-CVS] r859 - trunk/SQLObject/examples
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-07-28 08:38:37
|
Author: phd Date: 2005-07-28 08:38:30 +0000 (Thu, 28 Jul 2005) New Revision: 859 Modified: trunk/SQLObject/examples/codebits.py Log: Fixed two minor bugs found by Cedric BRINER. Modified: trunk/SQLObject/examples/codebits.py =================================================================== --- trunk/SQLObject/examples/codebits.py 2005-07-27 19:18:12 UTC (rev 858) +++ trunk/SQLObject/examples/codebits.py 2005-07-28 08:38:30 UTC (rev 859) @@ -162,7 +162,7 @@ ## Snippet "composite" class InvoiceItem(SQLObject): - amount = Currency() + amount = CurrencyCol() currency = StringChar(length=3) def _get_price(self): @@ -218,7 +218,7 @@ return self._so.longitude def _set_longitude(self, value): self._so.longitude = value - longitude = property(_get_longitude, set_longitude) + longitude = property(_get_longitude, _set_longitude) ## end snippet ## Snippet "image-binary" |