If I delete a property from a ZClass, the property still exists for each instance of the class (I can do a dtml-var to show it), but it doesn't show up on the management screens for either the class or the instance. I cannot add it back with the Properties tab - zope tells me that it is in use. New instances of the class do not have the removed property. I'm using Zope 2.2.2 on Linux. Is this behavior correct? -Paul
Is this behavior correct?
See http://www.zope.org/Members/paulabrams/howto_deleteundeadzclassprops for help. It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they are deleted from the class itself, and new instances that are instansiated from the now modified class will not. -Morten
On Fri, 6 Oct 2000, Morten W. Petersen wrote:
It is not a bug per se, Python (upon which ZOPE is based) is built this way, i.e. if you create a class with certain attributes, every instance will keep those attributes, even if they are deleted from the class itself, and new instances that are instansiated from the now modified class will not.
Context got mixed up, please disregard. -Morten
participants (2)
-
Morten W. Petersen -
Paul Erickson