Everytime I try to view a page template I get Exception Value Context instance has no attribute 'getValue' Traceback (innermost last): * Module ZPublisher.Publish, line 115, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 41, in call_object * Module Shared.DC.Scripts.Bindings, line 313, in __call__ * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec * Module Products.PageTemplates.ZopePageTemplate, line 291, in _exec * Module zope.pagetemplate.pagetemplate, line 117, in pt_render Warning: Macro expansion failed Warning: exceptions.AttributeError: Context instance has no attribute 'getValue' * Module zope.tal.talinterpreter, line 277, in __call__ * Module zope.tal.talinterpreter, line 352, in interpret * Module zope.tal.talinterpreter, line 902, in do_useMacro AttributeError: Context instance has no attribute 'getValue' the offending line is outer = self.engine.getValue('macroname') and self.engine is a Products.PageTemplates.TALES.Context instance In Zope2, as far as I can see, neither engines or contexts has a getValue method. Should we really use Zope TALES with Zope3 page templates? -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
--On 21. April 2006 17:25:46 +0200 Lennart Regebro <regebro@gmail.com> wrote:
outer = self.engine.getValue('macroname')
and self.engine is a Products.PageTemplates.TALES.Context instance
In Zope2, as far as I can see, neither engines or contexts has a getValue method. Should we really use Zope TALES with Zope3 page templates?
My ajung-final-zpt-integration branch contains a version that does no longer require the Zope 2 TALES implementation (but uses the Zope 3 codebase)...but this branch needs some more work for 2.10. Andreas -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
participants (2)
-
Andreas Jung -
Lennart Regebro