[ZCM] [ZC] 2156/ 2 Wontfix "Metal: error using macroname 'update'"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Fri Jul 21 12:35:44 EDT 2006
Issue #2156 Update (Wontfix) "Metal: error using macroname 'update'"
Status Wontfix, Zope/bug medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2156
==============================================================
= Wontfix - Entry #2 by tseaver on Jul 21, 2006 12:35 pm
Status: Pending => Wontfix
The 'macros' of a template is either a dict () or a dict-like object (), whose 'update' method shadows any key named update when used
in a path expression.
As a workaround, try:
<div metal:use-macro="template.macros['update']" />
Better yet, rename the macro.
________________________________________
= Request - Entry #1 by d2m on Jul 21, 2006 12:14 pm
Using 'update' as a metal macroname throws an error
==master==
<div metal:use-macro="context/detail/macros/update" />
==detail==
before <div metal:define-macro="update">text</div> after
--traceback--
2006-07-21 17:50:28 ERROR Zope.SiteErrorLog http://host/temp_folder/master
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 311, in __call__
Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
Module Products.PageTemplates.ZopePageTemplate, line 256, in _exec
Module Products.PageTemplates.PageTemplate, line 104, in pt_render
- <ZopePageTemplate at /temp_folder/master>
Module TAL.TALInterpreter, line 238, in __call__
Module TAL.TALInterpreter, line 281, in interpret
Module TAL.TALInterpreter, line 739, in do_useMacro
Module TAL.TALDefs, line 152, in isCurrentVersion
Module TAL.TALDefs, line 165, in getProgramVersion
TypeError: len() of unsized object
==============================================================
More information about the Zope-Collector-Monitor
mailing list