zope 2.6.3 and PropertySheetsI spent the wee hours of Sunday upgrading my sites to 2.6.3 Everything looks great. Refreshed, visited the sites .. cool, no problem. Or so i thought. In the early morning, I noticed that objects could not have their properties updated. What the ..? Quickly reverted back to 2.6.1 (and a half). Later when i was a bit calm, i checked out the CHANGES.txt. Hmm.. there's one mention of PropertyManager. Maybe that was it? I did a diff between the working zope and the b0rked zope's PropertySheets.py and discovered that _updateProperties was changed. Changed the last part of _updateProperties (here's the diff):
--- PropertySheets.py 2004-01-12 12:49:10.740987630 +0800
+++ PropertySheets.py.org 2004-01-12 12:48:50.532561305 +0800
@@ -245,7 +245,7 @@
# bleah - can't change kw name in api, so use ugly workaround.
if type(value) == ListType:
value = tuple(value)
- setattr(self.v_self(), id, value)
+ setattr(self, id, value)
def _delProperty(self, id):
# Delete the property with the given id. If a property with the
And that did it. Sent a Bug + Solution to the zope collector. |
This site conforms to the following standards: