[Zope] Zope 2.3.0 python products and inheritance problem
Petr Knapek
knapek@knapek.pvt.net
21 Mar 2001 15:55:18 +0100
Hi Zopists,
I have developed some python products for Zope (2.1.6) and now I try to
upgrade them for Zope 2.3.0 but some problems with inheritance have
appeared.=20
I have 2 python products, lets say A and B(A) which inherits from A.
Product A has a method MA(REQUEST) and product B(A) has a dtml template
TB. In the template TB I call MA as this:=20
<dtml-var "MA(REQUEST)">.
When I was running it under Zope2.1.6 everything was OK but now under
Zope 2.3.0 when TB is rendered the Zope error is raised:
=20
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: NameError
Error Value: showParentPathISNG
Troubleshooting Suggestions
This resource may be trying to reference a nonexistent obje=
ct or variable
showParentPathISNG.=20
The URL may be incorrect.=20
The parameters passed to this resource may be incorrect.=20
A resource that this resource relies on may be encountering=
an error.=20
For more detailed information about the error, please refer to=
the HTML source for this page.=20
If the error persists please contact the site maintainer. Than=
k you for your patience.=20
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
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: addDocument)
File /usr/local/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line=
112, in call_object
(Object: addDocument)
File /usr/local/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 1=
27, in __call__
(Object: addDocument)
File /usr/local/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_String.=
py, line 538, in __call__
(Object: addDocument)
File /usr/local/Zope-2.3.0-src/lib/python/DocumentTemplate/DT_Util.py=
, line 334, in eval
(Object: showParentPathISNG(REQUEST, start=3D2, stop=3D-2))
(Info: REQUEST)
File <string>, line 0, in ?
NameError: (see above)
What has changed with inheritance mechanism in Zope 2.3.0 in comparison
with Zope 2.1.6. Can anybody tell me more how to solve my problem?
Petr
PS Shane, now my manage_tabs works fine. Thank you for help.=20=20=20=
=20=20
--=20
Petr Kn=E1pek
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