[Zope-dev] ZPatterns goes crazy after ZClass change
Itai Tavor
itai@optusnet.com.au
Tue, 20 Feb 2001 17:06:55 +1100
Hi,
I have a Rack which uses ZClass Company for storage. I renamed
Company to CompanyX and created a new Company ZClass, giving it the
same methods, propertysheets and properties as CompanyX. When I tried
to view editInstanceForm_html of an instance of this class, I got the
method stored in CompanyX. So I deleted CompanyX from the control
panel. I still got the CompanyX method. I used the Rack's Storage tab
to select another ZClass. Still got the method from CompanyX.
when I click Remove Orphaned Slots on this Rack, I get:
AttributeError
_setRack
Traceback (innermost last):
File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 187, in publish
File /opt/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: ProviderContainer)
File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 171, in publish
File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: manage_pack)
File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: manage_pack)
File /opt/Zope/lib/python/Products/ZPatterns/Rack.py, line 418, in
manage_pack
(Object: ProviderContainer)
File /opt/Zope/lib/python/Products/ZPatterns/Rack.py, line 59, in getItem
(Object: ProviderContainer)
File /opt/Zope/lib/python/Products/ZPatterns/Rack.py, line 114, in
retrieveItem
(Object: ProviderContainer)
File /opt/Zope-2.3.0-linux2-x86/lib/python/OFS/Uninstalled.py, line
110, in __getattr__
(Object: broken)
AttributeError: (see above)
Any ideas how I can fix this without recreating the Rack and all my
persistent data?
--
--
Itai Tavor -- "Je sautille, donc je suis." --
itai@optusnet.com.au -- - Kermit the Frog --
-- --
-- "If you haven't got your health, you haven't got anything" --