Attempting to copy objects within a login manager object produces the following error under 2.3.0. Copy works correctly inside a login manager object in 2.2.4. Again, I'm not sure who I should notify about this and would appreciate some guidance from the more experienced list members. <html><head><title>Login Manager</title></head><body bgcolor="#FFFFFF"> <HTML> <HEAD><TITLE>Zope Error</TITLE></HEAD> <BODY> <TABLE BORDER="0" WIDTH="100%"> <TR VALIGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> </TD> <TD WIDTH="90%"> <H2>Zope Error</H2> <P>Zope has encountered an error while publishing this resource. </P> <P><STRONG>Resource not found</STRONG></P> Sorry, the requested Zope resource does not exist.<p>Check the URL and try again.<p> <!-- BTreeItems object at 89a2400 --> <HR NOSHADE> <P>Troubleshooting Suggestions</P> <UL> <LI>The URL may be incorrect.</LI> <LI>The parameters passed to this resource may be incorrect.</LI> <LI>A resource that this resource relies on may be encountering an error.</LI> </UL> <P>For more detailed information about the error, please refer to the HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> </TD></TR> </TABLE> </BODY> </HTML> <p><a href="http://www.zope.org/Credits" target="_top"><img src="http://www.spado.org:8080/p_/ZopeButton" width="115" height="50" border="0" alt="Powered by Zope" /></a></p></body></html> <PRE> Traceback (innermost last): File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-3-0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ProviderContainer) File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 173, in publish File /usr/local/zope/2-3-0/lib/python/ZPublisher/HTTPResponse.py, line 326, in setBody File /usr/local/zope/2-3-0/lib/python/ZPublisher/HTTPResponse.py, line 548, in notFoundError NotFound: (see above) </PRE> Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: manage_tabs Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable manage_tabs. The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/2-3-0/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ProviderContainer) File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/2-3-0/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_copyObjects) File /usr/local/zope/2-3-0/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_copyObjects) File /usr/local/zope/2-3-0/lib/python/OFS/CopySupport.py, line 173, in manage_copyObjects (Object: ProviderContainer) File /usr/local/zope/2-3-0/lib/python/App/special_dtml.py, line 127, in __call__ (Object: manage_main) File /usr/local/zope/2-3-0/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: manage_main) KeyError: (see above) -- Ed Goppelt
Edmund Goppelt wrote:
Attempting to copy objects within a login manager object produces the following error under 2.3.0. Copy works correctly inside a login manager object in 2.2.4.
Error Type: KeyError Error Value: manage_tabs
This is the third product where I've seen this particular bug occur. The problem is that CopySupport.py was changed in such a way that it now invokes the folder contents view with one less argument. Folder.py was changed accordingly. But all products which show a special folder contents view, such as BTreeFolder, ZPatterns, and now LoginManager, also need the same change. I have updated BTreeFolder. The easy fix is to search for all occurences of "HTMLFile" in the product code and replace them with "DTMLFile". Product authors can use a try/except clause to maintain backward compatibility; look at how BTreeFolder does the import. Shane
Edmund Goppelt wrote:
Attempting to copy objects within a login manager object produces the following error under 2.3.0. Copy works correctly inside a login manager object in 2.2.4.
Error Type: KeyError Error Value: manage_tabs
This is the third product where I've seen this particular bug occur. The problem is that CopySupport.py was changed in such a way that it now invokes the folder contents view with one less argument. Folder.py was changed accordingly. But all products which show a special folder contents view, such as BTreeFolder, ZPatterns, and now LoginManager, also need the same change. I have updated BTreeFolder. The easy fix is to search for all occurences of "HTMLFile" in the product code and replace them with "DTMLFile". Product authors can use a try/except clause to maintain backward compatibility; look at how BTreeFolder does the import. Shane
participants (2)
-
Edmund Goppelt -
Shane Hathaway