[Zope-dev] Racks and export/import.....
Steve Spicklemire
steve@spvi.com
Tue, 22 Aug 2000 13:37:14 -0500 (EST)
Hi Folks,
Is there any reason why a Rack shouldn't be 'exportable'?
I have a Rack of objects, but when I export/import
(as a .zexp) and then call "getItem" I'm getting:
<TD WIDTH="90%">
<H2>Zope Error</H2>
<P>Zope has encountered an error while publishing this resource.
</P>
<P>
<STRONG>Error Type: AttributeError</STRONG><BR>
<STRONG>Error Value: _setRack</STRONG><BR>
</P>
<HR NOSHADE>
<p><a href="http://www.zope.org/Credits" target="_top"><img src="http://jupiter.spvi.com:13080/p_/ZopeButton" width="115" height="50" border="0" alt="Powered by Zope"></a></p>
</BODY></HTML>
<PRE>
Traceback (innermost last):
File /usr/local/etc/Zope2a/lib/python/ZPublisher/Publish.py, line 222, in publish_module
File /usr/local/etc/Zope2a/lib/python/ZPublisher/Publish.py, line 187, in publish
File /usr/local/etc/Zope2a/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
(Object: Transactional)
File /usr/local/etc/Zope2a/lib/python/ZPublisher/Publish.py, line 171, in publish
File /usr/local/etc/Zope2a/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
File /usr/local/etc/Zope2a/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: index_html)
File /usr/local/etc/Zope2a/lib/python/OFS/DTMLMethod.py, line 167, in __call__
(Object: index_html)
File /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: index_html)
File /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob
(Object: defaultRack.getPersistentItemIDs())
File /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
(Object: currID="_['sequence-item']")
File /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_With.py, line 133, in render
(Object: getItem(currID))
File /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
(Object: getItem(currID))
(Info: currID)
File <string>, line 0, in ?
File /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/Specialists.py, line 34, in getItem
(Object: Transactional)
File /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/Rack.py, line 60, in getItem
(Object: Transactional)
File /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/Rack.py, line 117, in retrieveItem
(Object: Transactional)
File /usr/local/etc/Zope2a/lib/python/OFS/Uninstalled.py, line 110, in __getattr__
(Object: broken)
AttributeError: (see above)
</PRE>
The wierd thing is it seems to work with some racks and not others....
-steve