AttributeError in DocFinder 1.0.3
I've installed DocFinder 1.0.3 but I'm getting an error when I try to instantiate. I'm running (Zope 2.6.2 (binary release, python 2.1, linux2-x86), python 2.1.3, linux2) Python Version 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] I also found standard_template.pt on my local installation and copied it to the same directory on the server but that doesn't help either. What do I need to add? Kate Exception Type AttributeError Exception Value standard_template.pt Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module Shared.DC.Scripts.Bindings, line 252, in __call__ * Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec * Module Products.PageTemplates.PageTemplateFile, line 96, in _exec * Module Products.PageTemplates.PageTemplate, line 95, in pt_render <PageTemplateFile at /> * Module TAL.TALInterpreter, line 200, in __call__ * Module TAL.TALInterpreter, line 244, in interpret * Module TAL.TALInterpreter, line 689, in do_useMacro * Module Products.PageTemplates.TALES, line 220, in evaluate URL: addForm Line 1, Column 0 Expression: standard:'here/standard_template.pt/macros/page' Names: {'container': <__FactoryDispatcher__ instance at 8f47fb8>, 'default': <Products.PageTemplates.TALES.Default instance at 0x867d0f4>, 'here': <__FactoryDispatcher__ instance at 8f47fb8>, 'loop': <SafeMapping instance at 8e453e0>, 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x867cdec>, 'nothing': None, 'options': {'args': ()}, 'repeat': <SafeMapping instance at 8e453e0>, 'request': <HTTPRequest, URL=http://www2.kfpl.ca:8080/manage_addProduct/DocFinder/addForm>, 'root': <Application instance at 8df00f0>, 'template': <PageTemplateFile at />, 'traverse_subpath': [], 'user': zope} * Module Products.PageTemplates.Expressions, line 206, in __call__ * Module Products.PageTemplates.Expressions, line 194, in _eval * Module Products.PageTemplates.Expressions, line 150, in _eval __traceback_info__: here * Module Products.PageTemplates.Expressions, line 360, in restrictedTraverse __traceback_info__: {'path': ['standard_template.pt', 'macros', 'page'], 'TraversalRequestNameStack': ['page', 'macros']} AttributeError: standard_template.pt
Kate Legere wrote at 2005-8-5 15:04 -0400:
I've installed DocFinder 1.0.3 but I'm getting an error when I try to instantiate. ... Exception Type AttributeError Exception Value standard_template.pt
"standard_template.pt" is one of the standard objects you should find in your Zope "Root Folder" (in the ZMI). Its companions are "standard_error_message", "standard_html_footer" and "standard_html_header". Maybe, your Zope instance is very old (from a time when "standard_template.pt" was not yet created). "standard_template.pt" is a Page Template with the following content: <html metal:define-macro="page"> <head> <metal:block define-slot="head"> <title tal:content="template/title">The Title</title> </metal:block> </head> <body> <div metal:define-slot="body"> This is where the page's body text goes. abc </div> </body> </html> -- Dieter
participants (2)
-
Dieter Maurer -
Kate Legere