[Zope] Adding new _properties
Chris Withers
lists at simplistix.co.uk
Mon Mar 29 10:51:12 EST 2004
> After that, I cannt read old objects of this class. Zope write:
> Site Error
> An error was encountered while publishing this resource.
> Error Type: AttributeError
> Error Value: n1
>
> How can I solve this problem?
class easyArticle(SimpleItem.SimpleItem):
n1 = 0.0
n2 = 0.0
_properties = (
{'id':'author', 'type':'string', 'mode':'w'},
{'id':'n1','type':'float', 'mode':'w'},
{'id':'n2','type':'float', 'mode':'w'}
)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list