Upgrade python product from Zope2.1.6 to Zope2.3.0 problem
Hi Zopists, for long time I have used modified by myself LDAPAdapter python product for Zope 2.1.6 on my Linux Debian box. Now I would like to upgrade my python products to work on Zope 2.3.0 My product is properly installed in Zope (I can see it) but when i try to add an instance of my product into the Zope, an error is raised. Here you can see traceback: Zope Error Zope has encountered an error while publishing this resource. Error Type: KeyError Error Value: BASEPATH1 Troubleshooting Suggestions This resource may be trying to reference a nonexistent object or variable BASEPATH1. 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-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: addLDAPAdapter) File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: addLDAPAdapter) File /usr/local/Zope-2.3.0-src/lib/python/Products/LDAPAdapter/LDAPAdapter.py, line 188, in addLDAPAdapter (Object: Traversable) File /usr/local/Zope-2.3.0-src/lib/python/Products/LDAPAdapter/LDAPAdapter.py, line 285, in __init__ (Object: RoleManager) File /usr/local/Zope-2.3.0-src/lib/python/Products/LDAPAdapter/LDAPAdapter.py, line 467, in manage_edit (Object: RoleManager) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: manage) File /usr/local/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 236, in _exec (Object: manage) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 337, in __render_with_namespace__ (Object: manage_tabs) File /usr/local/Zope-2.3.0-src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: manage_tabs) File /usr/local/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 236, in _exec (Object: manage_tabs) File /usr/local/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_With.py, line 146, in render (Object: _(manage_options=filtered_manage_options())) File /usr/local/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_Var.py, line 276, in render (Object: BASEPATH1) KeyError: (see above) Can anybody tell me more than traceback? Petr -- Petr Knápek NEXTRA Czech Republic, s.r.o., Hlinky 114, 603 00 Brno, Czech Republic e-mail: mailto:petr.knapek@nextra.cz tel:+420-5-43 554 150 FAX:+420-5-43 554 214
Petr Knapek wrote:
My product is properly installed in Zope (I can see it) but when i try to add an instance of my product into the Zope, an error is raised.
File /usr/local/Zope-2.3.0-src/lib/python/Products/LDAPAdapter/LDAPAdapter.py, line 467, in manage_edit (Object: RoleManager)
The problem is likely located near line 467 of LDAPAdapter.py. It is apparently invoking an HTMLFile or DTMLFile with syntax that doesn't fit Zope 2.3.x. I can't say much more without looking at the source. Shane
participants (2)
-
Petr Knapek -
Shane Hathaway