#59 — errors relating global_defines in templates

by Pavel Bogdanovic last modified Apr 20, 2010 03:22 PM
State Unconfirmed
Version:
Area User interface
Issue type Bug
Severity Medium
Submitted by Pavel Bogdanovic
Submitted on Apr 20, 2010
Responsible
Target release:
Click on any press review throws error.
Patches are attached.

Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 240, in _exec
  Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
  Module Products.Gloworm, line 28, in pt_render
  Module zope.pagetemplate.pagetemplate, line 115, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 954, in do_defineSlot
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 858, in do_defineMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 954, in do_defineSlot
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 946, in do_defineSlot
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 858, in do_defineMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/home/plone/plone4/eggs/Products.PressRoom-3.3-py2.6.egg/Products/PressRoom/skins/pressroom_content/pressrelease_relatedcontacts.pt
   - Line 5, Column 0
   - Expression: <PythonExpr wtool.getInfoFor>
   - Names:
      {'container': <PloneSite at /plone>,
       'context': <PressRelease at /plone/ueber-uns/presse/pressemitteilungen/grossaktion-an-einem-tag-mit-viel-spass-pinsel-und-farbe>,
       'default': <object object at 0xb7e3c708>,
       'here': <PressRelease at /plone/ueber-uns/presse/pressemitteilungen/grossaktion-an-einem-tag-mit-viel-spass-pinsel-und-farbe>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe7c6f8c>,
       'request': <HTTPRequest, URL=http://lvps87-230-5-70.dedi[…]arbe/pressrelease_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /plone/pressrelease_view used for /plone/ueber-uns/presse/pressemitteilungen/grossaktion-an-einem-tag-mit-viel-spass-pinsel-und-farbe>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}
  Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
   - __traceback_info__: wtool.getInfoFor
  Module PythonExpr, line 1, in <expression>
NameError: name 'wtool' is not defined
Attached:
folder_listing_pressroom.pt — Octet Stream, 9 kB (9879 bytes)
Added by Pavel Bogdanovic on Apr 20, 2010 03:22 PM
Attached:
pressrelease_relatedcontacts.pt — application/octet-stream, 2 Kb

No responses can be added.