#4 — getIcon error
by
Yuri
—
last modified
Apr 26, 2010 11:30 AM
| State | Unconfirmed |
|---|---|
| Version: | 0.7 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | Yuri |
| Submitted on | Apr 26, 2010 |
| Responsible |
—
|
| Target release: |
—
|
after the configuring of portal_facetednavigation, I try to use it. I get this error:
Time 2010/04/26 12:56:32.852 GMT+2
User Name (User Id) admin (admin)
Request URL http://xxx/istanze/due/@@faceted-navigation
Exception Type AttributeError
Exception Value %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif
Traceback (innermost last):
* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module Products.Five.browser.metaconfigure, line 417, in __call__
* Module Shared.DC.Scripts.Bindings, line 313, in __call__
* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
* Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
* Module Products.PageTemplates.PageTemplate, line 98, in pt_render
* Module zope.pagetemplate.pagetemplate, line 117, in pt_render
* Module zope.tal.talinterpreter, line 271, in __call__
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 891, in do_useMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 957, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 861, in do_defineMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 957, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 534, in do_optTag_tal
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 949, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 891, in do_useMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 855, in do_condition
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 824, in do_loop_tal
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 534, in do_optTag_tal
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
* Module Products.PageTemplates.Expressions, line 223, in evaluateStructure
* Module zope.tales.tales, line 696, in evaluate
URL: index
Line 78, Column 9
Expression: <PythonExpr ( getattr(context, brain.getIcon))>
Names:
{'container': <PloneSite at /istanze/due>,
'context': <PloneSite at /istanze/due>,
'default': <object object at 0x2b28c25a0200>,
'here': <PloneSite at /istanze/due>,
'loop': {'brain': <Products.PageTemplates.Expressions.PathIterator object at 0xe94b0d0>},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /home/yuri/sviluppo_plone/biblioteca_digitale/eggs/collective.facetednavigation-0.7.2-py2.4.egg/collective/facetednavigation/browser/templates/facetednavigation.pt object at 0xe890b50>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe66d248>,
'request': <HTTPRequest, URL=http://xxx/istanze/due/@@faceted-navigation>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0xe7c8690>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /home/yuri/sviluppo_plone/biblioteca_digitale/eggs/collective.facetednavigation-0.7.2-py2.4.egg/collective/facetednavigation/browser/templates/facetednavigation.pt object at 0xe890b50>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xe7c8150>}
* Module zope.tales.pythonexpr, line 59, in __call__
__traceback_info__: ( getattr(context, brain.getIcon))
* Module <string>, line 0, in ?
AttributeError: %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif
============
I can display %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif so I cannot understand why I get this error...
Time 2010/04/26 12:56:32.852 GMT+2
User Name (User Id) admin (admin)
Request URL http://xxx/istanze/due/@@faceted-navigation
Exception Type AttributeError
Exception Value %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif
Traceback (innermost last):
* Module ZPublisher.Publish, line 119, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 42, in call_object
* Module Products.Five.browser.metaconfigure, line 417, in __call__
* Module Shared.DC.Scripts.Bindings, line 313, in __call__
* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
* Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
* Module Products.PageTemplates.PageTemplate, line 98, in pt_render
* Module zope.pagetemplate.pagetemplate, line 117, in pt_render
* Module zope.tal.talinterpreter, line 271, in __call__
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 891, in do_useMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 957, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 861, in do_defineMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 957, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 534, in do_optTag_tal
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 949, in do_defineSlot
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 891, in do_useMacro
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 855, in do_condition
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 536, in do_optTag_tal
* Module zope.tal.talinterpreter, line 521, in do_optTag
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 824, in do_loop_tal
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 534, in do_optTag_tal
* Module zope.tal.talinterpreter, line 516, in no_tag
* Module zope.tal.talinterpreter, line 346, in interpret
* Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
* Module Products.PageTemplates.Expressions, line 223, in evaluateStructure
* Module zope.tales.tales, line 696, in evaluate
URL: index
Line 78, Column 9
Expression: <PythonExpr ( getattr(context, brain.getIcon))>
Names:
{'container': <PloneSite at /istanze/due>,
'context': <PloneSite at /istanze/due>,
'default': <object object at 0x2b28c25a0200>,
'here': <PloneSite at /istanze/due>,
'loop': {'brain': <Products.PageTemplates.Expressions.PathIterator object at 0xe94b0d0>},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /home/yuri/sviluppo_plone/biblioteca_digitale/eggs/collective.facetednavigation-0.7.2-py2.4.egg/collective/facetednavigation/browser/templates/facetednavigation.pt object at 0xe890b50>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xe66d248>,
'request': <HTTPRequest, URL=http://xxx/istanze/due/@@faceted-navigation>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0xe7c8690>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /home/yuri/sviluppo_plone/biblioteca_digitale/eggs/collective.facetednavigation-0.7.2-py2.4.egg/collective/facetednavigation/browser/templates/facetednavigation.pt object at 0xe890b50>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xe7c8150>}
* Module zope.tales.pythonexpr, line 59, in __call__
__traceback_info__: ( getattr(context, brain.getIcon))
* Module <string>, line 0, in ?
AttributeError: %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif
============
I can display %2B%2Bresource%2B%2Bcollage-resources/collage_icon.gif so I cannot understand why I get this error...
Added by
Yuri
on
Apr 26, 2010 11:23 AM
I mean, it tries to retrieve the icon as an attribute, while it is a catalog metadata.
Added by
Yuri
on
Apr 26, 2010 11:30 AM
fixed with:<img tal:attributes="src python: brain.getIcon"/></a>
in browser/templates/facetednavigation_macros.pt
No responses can be added.
If you can, please log in before submitting a reaction.
