[Zope-dev] Calling DTML methods from Python

Itamar Shtull-Trauring itamars@ibm.net
Wed, 24 Nov 1999 14:41:28 +0200


Martijn Pieters wrote:

>    request = self.manage_tabs(self, _)

I tried that too - it gives the following error:

Error Type: AttributeError
Error Value: validate

Traceback (innermost last):
  File /home/zope/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
  File /home/zope/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /home/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: CatalogAware)
  File /home/zope/lib/python/ZPublisher/Publish.py, line 165, in publish
  File /home/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_ImagesForm)
  File /home/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object
    (Object: manage_ImagesForm)
  File /home/zope/lib/python/Products/PythonMethod/PythonMethod.py, line
168, in __call__
    (Object: manage_ImagesForm)
    (Info: ((<Article instance at 8578a80>,), {}, None))
  File <string>, line 3, in manage_ImagesForm
    (Object: CatalogAware)
  File /home/zope/lib/python/App/special_dtml.py, line 120, in __call__
    (Object: manage_tabs)
    (Info: /home/zope/lib/python/App/manage_tabs.dtml)
  File /home/zope/lib/python/DocumentTemplate/DT_String.py, line 490, in
__call__
    (Object: manage_tabs)
AttributeError: (see above)

-- 
Itamar S.T.  itamars@ibm.net