Issue 172 in dexterity: Error when view folder with folder_full_view view

19 views
Skip to first unread message

dext...@googlecode.com

unread,
May 7, 2011, 11:54:26 AM5/7/11
to dexterity-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 172 by heat...@gmail.com: Error when view folder with
folder_full_view view
http://code.google.com/p/dexterity/issues/detail?id=172

What steps will reproduce the problem?
1. Create dexterity content-type (telefones)
2. Add telefone content in folder
3. view using folder-full-view

What is the expected output? What do you see instead?
All content and field content.

what i'm see:

Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 240, in _exec
Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, 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 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 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 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 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 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 852, in do_condition
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 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 821, in do_loop_tal
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 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 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 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
Module Products.PageTemplates.Expressions, line 218, in evaluateStructure
Module zope.tales.tales, line 696, in evaluate
- URL:
file:/home/plone/.buildout/eggs/Products.CMFPlone-4.1b2-py2.6.egg/Products/CMFPlone/skins/plone_content/folder_full_view.pt
- Line 17, Column 24
- Expression: <PythonExpr item.getObject().folder_full_view_item()>
- Names:
{'container': <PloneSite at /plonesite>,
'context': <ATFolder at /plonesite/secretarias>,
'default': <object object at 0x7f9a194574c0>,
'here': <ATFolder at /plonesite/secretarias>,
'loop': {u'item': <Products.PageTemplates.Expressions.PathIterator
object at 0xecf73d0>},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at
0xecde050>,
'request': <HTTPRequest,
URL=http://187.33.1.14:8080/plonesite/secretarias/folder_full_view>,
'root': <Application at >,
'template': <FSPageTemplate at /plonesite/folder_full_view used for
/plonesite/secretarias>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
- __traceback_info__: item.getObject().folder_full_view_item()
Module PythonExpr, line 1, in <expression>
Module Shared.DC.Scripts.Bindings, line 322, in __call__
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 240, in _exec
Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
Module Products.PageTemplates.PageTemplate, line 79, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
- Warning: Macro expansion failed
- Warning: <type 'exceptions.KeyError'>: 'item_macro'
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 531, in do_optTag_tal
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
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 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 819, in do_loop_tal
Module zope.tales.tales, line 682, in setRepeat
Module zope.tales.tales, line 696, in evaluate
- URL:
/home/plone/.buildout/eggs/plone.app.dexterity-1.0rc1-py2.6.egg/plone/app/dexterity/browser/item.pt
- Line 13, Column 4
- Expression: <PathExpr standard:u'view/widgets/values'>
- Names:
{'container': <PloneSite at /plonesite>,
'context': <Item at
/plonesite/secretarias/secretaria-de-comunicacao>,
'default': <object object at 0x7f9a194574c0>,
'here': <Item at /plonesite/secretarias/secretaria-de-comunicacao>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at
0xe32f100>,
'request': <HTTPRequest,
URL=http://187.33.1.14:8080/plonesite/secretarias/folder_full_view>,
'root': <Application at >,
'template': <FSPageTemplate at /plonesite/folder_full_view_item used
for /plonesite/secretarias/secretaria-de-comunicacao>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 147, in _eval
Module zope.tales.expressions, line 124, in _eval
Module Products.PageTemplates.Expressions, line 97, in
trustedBoboAwareZopeTraverse
Module zope.traversing.adapters, line 136, in traversePathElement
- __traceback_info__: (<Products.Five.metaclass.Plone object at
0xecf7810>, 'widgets')
Module zope.traversing.adapters, line 50, in traverse
- __traceback_info__: (<Products.Five.metaclass.Plone object at
0xecf7810>, 'widgets', ['values'])
LocationError: (<Products.Five.metaclass.Plone object at
0xecf7810>, 'widgets')


What version of the product are you using? On what operating system?
Plone 4.1

Please provide any additional information below.


dext...@googlecode.com

unread,
May 8, 2011, 12:05:17 AM5/8/11
to dexterity-...@googlegroups.com

Comment #1 on issue 172 by dgl...@gmail.com: Error when view folder with
folder_full_view view
http://code.google.com/p/dexterity/issues/detail?id=172

This appears to be a bug in Plone itself...the folder_full_view does not
re-set the 'view' variable before calling the macro from the item's
template, which is necessary in cases where that template is view-based.

dext...@googlecode.com

unread,
May 19, 2011, 8:19:12 AM5/19/11
to dexterity-...@googlegroups.com

Comment #2 on issue 172 by laurence...@gmail.com: Error when view folder

I've fixed 4.1 to fallback to rendering a link to the item here when the
macro expansion fails.
http://dev.plone.org/plone/changeset/49801/Products.CMFPlone/trunk

I'm not sure how to tell whether a particular layout is a view or a skin
template - skin templates need view set to plone_view which is normally set
in main_template.

dext...@googlecode.com

unread,
May 19, 2011, 11:30:55 PM5/19/11
to dexterity-...@googlegroups.com

Comment #3 on issue 172 by dgl...@gmail.com: Error when view folder with
folder_full_view view
http://code.google.com/p/dexterity/issues/detail?id=172

Can you just traverse to the layout and check for some interface (or lack
thereof) on it?

dext...@googlecode.com

unread,
Jun 11, 2013, 9:25:10 AM6/11/13
to dexterity-...@googlegroups.com

Comment #4 on issue 172 by da...@dawninglight.net: Error when view folder
This error occurs on 4.0.10 as well.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages