traversal error in portal_quickinstaller after using ZopeSkel plone3_theme

David Bain david.bain at alteroo.com
Mon Nov 19 12:25:47 UTC 2007


I've set up a new theme using ZopeSkel as follows

paster create -t plone3_theme

I've used easy_install my.theme
and then placed the zcml slug in instance/etc/package-includes

After restarting zope I get a traversal error (the full output is below):

Site Error

An error was encountered while publishing this resource.

*TraversalError*
Sorry, a site error occurred.

Traceback (innermost last):

   - Module ZPublisher.Publish, line 202, in publish_module_standard
   - Module ZPublisher.Publish, line 150, in publish
   - Module Zope2.App.startup, line 221, in zpublisher_exception_hook
   - Module ZPublisher.Publish, line 119, in publish
   - Module ZPublisher.mapply, line 88, in mapply
   - Module ZPublisher.Publish, line 42, in call_object
   - 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 89, 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 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 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 824, in do_loop_tal
   - Module zope.tal.talinterpreter , line 346, in interpret
   - Module zope.tal.talinterpreter, line 379, in do_startEndTag
   - Module zope.tal.talinterpreter, line 408, in do_startTag
   - Module zope.tal.talinterpreter, line 485, in attrAction_tal
   - Module Products.PageTemplates.Expressions, line 228, in evaluateText
   - Module zope.tales.tales, line 696, in evaluate
   *URL: manage_installProductsForm*
   *Line 34, Column 12*
   *Expression: <PathExpr standard:'product/id'>*
   *Names:*

   {'container': <QuickInstallerTool at /plonesite/portal_quickinstaller>,
    'context': <QuickInstallerTool at /plonesite/portal_quickinstaller>,
    'default': <object object at 0xb7df3528>,
    'here': <QuickInstallerTool at /plonesite/portal_quickinstaller>,
    'loop': {'product':
<Products.PageTemplates.Expressions.PathIterator object at
0xb2a7ad0c>},
    'nothing': None,
    'options': {'args': ()},
    'repeat': <Products.PageTemplates.Expressions.SafeMapping object
at 0xb2a7a9cc>,
    'request': <HTTPRequest, URL=
   http://earth.alteroo.com:3880/plonesite/portal_quickinstaller/manage_installProductsForm>,
    'root': <Application at >,
    'template': <PageTemplateFile at
/plonesite/portal_quickinstaller/manage_installProductsForm>,
    'user': <PropertiedUser 'admin'>}

   - Module zope.tales.expressions, line 217, in __call__
   - Module Products.PageTemplates.Expressions, line 153, in _eval
   - Module zope.tales.expressions , line 124, in _eval
   - Module Products.PageTemplates.Expressions, line 83, in
   boboAwareZopeTraverse
   - Module zope.traversing.adapters, line 161, in traversePathElement
   __traceback_info__: ({'status': 'new', 'hasError': False, 'id':
   'ATReferenceBrowserWidget', 'title': 'ATReferenceBrowserWidget'}, 'id')

TraversalError: ('No traversable adapter found', {'status': 'new',
'hasError': False, 'id': 'ATReferenceBrowserWidget', 'title':
'ATReferenceBrowserWidget'}) (Also, the following error occurred while
attempting to render the standard error message, please see the event log
for full details: ('No traversable adapter found', {u'content': [('version',
'1.6'), ('mode', 'html'), ('setPosition', (99, 16)), ('setSourceFile',
'file:/home/david/plonehost1/parts/plone/CMFPlone/skins/plone_templates/main_template.pt'),
('beginScope', {u'tal:define': u'show_border
context/@@plone/showEditableBorder', u'metal:define-macro': u'content',
u'tal:attributes': u&quot;class
python:test(show_border,'documentEditable','')&quot;}), ('setLocal',
(u'show_border', &lt;PathExpr
standard:u'context/@@plone/showEditableBorder'&gt;)), ('startTag', (u'div',
[(u'metal:define-macro', u'content', 'metal'), (u'tal:define', u'show_border
c

--snip--

 python:Iterator(mainSlot=False)', 'tal')])), ('rawtextColumn', (u'\n\n ',
14)), ('setPosition', (98, 14)), ('defineSlot', (u'content', [('beginScope',
{u'define-slot': u'content'}), ('optTag', (u'metal:block', None, 'metal', 0,
[('startTag', (u'metal:block', [(u'define-slot', u'content', 'metal')]))],
[('rawtextColumn', (u'\n ', 16)), ('setPosition', (99, 16)), ('defineMacro',
(u'content', [('version', '1.6'), ('mode', 'html'), ('setPosition', (99,
16)), ('setSourceFile',
'file:/home/david/plonehost1/parts/plone/CMFPlone/skins/plone_templates/main_template.pt'),
('beginScope', {u'tal:define': u'show_border
context/@@plone/showEditableBorder', u'metal:define-macro': u'content',
u'tal:attributes': u&quot;class
python:test(show_border,'documentEditable','')&quot;}), ('setLocal',
(u'show_border', &lt;PathExpr
standard:u'context/@@plone/showEditableBorder'&gt;)), ('startTag', (u'div',
[(u'metal:define-macro', u'content', 'metal'), (u'tal:define', u'show_border
context/@@plone/showEditableBorder', 'tal'), (u'tal:attributes',
u&quot;class python:test(show_border,'documentEditable','')&quot;, 'tal'),
(u'class', None, 'insert', &lt;PythonExpr
test(show_border,'documentEditable','')&gt;, False, None)])),
('rawtextBeginScope', (u'\n\n ', 18, (103, 18), 0, {u'tal:replace':
u'structure provider:plone.contentviews'})), ('optTag', (u'div', '', None,
1, [('startEndTag', (u'div', [(u'tal:replace', u'structure provider:
plone.contentviews', 'tal')]))], [('insertStructure', (&lt;StringExpr u'
plone.contentviews'&gt;, {}, []))])), ('endScope', ()), ('rawtextColumn',
(u'\n\n &lt;div id=&quot;region-content&quot;
class=&quot;documentContent&quot;&gt;\n\n &lt;span
id=&quot;contentTopLeft&quot;&gt;&lt;/span&gt;\n &lt;span
id=&quot;contentTopRight&quot;&gt;&lt;/span&gt;\n \n &lt;a
name=&quot;documentContent&quot;&gt;&lt;/a&gt;\n\n ', 20)), ('setPosition',
(113, 20)), ('useMacro',
(u'here/global_statusmessage/macros/portal_message', &lt;PathExpr
standard:u'here/global_statusmessage/macros/portal_message'&gt;, {},
[('startTag', (u'div', [(u'metal:use-macro',
u'here/global_statusmessage/macros/portal_message', 'metal')])),
('rawtextColumn', (u'\n Portal status message\n &lt;/div&gt;', 26))])),
('setPosition', (115, 20)), ('setSourceFile',
'file:/home/david/plonehost1/parts/plone/CMFPlone/skins/plone_templates/main_template.pt'),
('rawtextBeginScope', (u'\n \n ', 20, (117, 20), 0, {u'tal:content':
u'structure provider:plone.abovecontent', u'id':
u'viewlet-above-content'})), ('startTag', (u'div', [(u'id',
u'id=&quot;viewlet-above-content&quot;'), (u'tal:content', u'structure
provider:plone.abovecontent', 'tal')])), ('insertStructure', (&lt;StringExpr
u'plone.abovecontent'&gt;, {}, [])), ('endScope', ()), ('rawtextColumn',
(u'&lt;/div&gt;\n\n ', 20)), ('setPosition', (119, 20)), ('defineSlot',
(u'body', [('beginScope', {u'metal:define-slot': u'body'}), ('optTag',
(u'metal:slot', None, 'metal', 0, [('startTag', (u'metal:slot',
[(u'metal:define-slot',

--snip--

('endScope', ()), ('rawtextColumn', (u'\n ', 16))])), ('endScope', ())])),
('setPosition', (160, 16)), ('setSourceFile',
'file:/home/david/plonehost1/parts/plone/CMFPlone/skins/plone_templates/main_template.pt'),
('rawtextColumn', (u'\n &amp;nbsp;\n &lt;/div&gt;\n &lt;/td&gt;', 17))])),
('endScope', ())])), ('setPosition', (163, 12)), ('setSourceFile',
'file:/home/david/plonehost1/parts/plone/CMFPlone/skins/plone_templates/main_template.pt'),
('rawtextBeginScope', (u'\n ', 12, (164, 12), 0, {u'replace': u'nothing'})),
('optTag', (u'tal:comment', '', 'tal', 0, [('startTag', (u'tal:comment',
[(u'replace', u'nothing', 'tal')]))], [('insertText', (&lt;PathExpr
standard:u'nothing'&gt;, [('rawtextOffset', (u' End of the right column ',
25))]))])), ('rawtextBeginScope', (u'\n &lt;/tr&gt;\n &lt;/tbody&gt;\n
&lt;/table&gt;\n ', 6, (168, 6), 1, {u'replace': u'nothing'})), ('optTag',
(u'tal:comment', '', 'tal', 0, [('startTag', (u'tal:comment', [(u'replace',
u'nothing', 'tal')]))], [('insertText', (&lt;PathExpr
standard:u'nothing'&gt;, [('rawtextOffset', (u' end column wrapper ',
20))]))])), ('rawtextBeginScope', (u'\n\n &lt;div
class=&quot;visualClear&quot;
id=&quot;clear-space-before-footer&quot;&gt;&lt;!-- --&gt;&lt;/div&gt;\n \n
', 6, (172, 6), 1, {u'tal:define': u'context_state
context/@@plone_context_state;\n portlet_assignable
context_state/portlet_assignable', u'tal:condition': u&quot;python:not sl
and not sr and portlet_assignable and checkPermission('Portlets: Manage
portlets', context)&quot;})), ('setLocal', (u'context_state', &lt;PathExpr
standard:u'context/@@plone_context_state'&gt;)), ('setLocal',
(u'portlet_assignable', &lt;PathExpr
standard:u'context_state/portlet_assignable'&gt;)), ('condition',
(&lt;PythonExpr not sl and not sr and portlet_assignable and
checkPermission('Portlets: Manage portlets', context)&gt;, [('startTag',
(u'div', [(u'tal:define', u'context_state context/@@plone_context_state;\n
portlet_assignable context_state/portlet_assignable', 'tal'),
(u'tal:condition', u&quot;python:not sl and not sr and portlet_assignable
and checkPermission('Portlets: Manage portlets', context)&quot;, 'tal')])),
('rawtextBeginScope', (u'\n ', 10, (175, 10), 0, {u'i18n:translate':
u'manage_portlets_fallback', u'class': u'managePortletsFallback',
u'tal:attributes': u'href
string:${context_state/canonical_object_url}/@@manage-portlets'})),
('startTag', (u'a', [(u'class',
u'class=&quot;managePortletsFallback&quot;'), (u'tal:attributes', u'href
string:${context_state/canonical_object_url}/@@manage-portlets', 'tal'),
(u'i18n:translate', u'manage_portlets_fallback', 'i18n'), (u'href', None,
'insert', &lt;StringExpr
u'${context_state/canonical_object_url}/@@manage-portlets'&gt;, False,
None)])), ('insertTranslation', (u'manage_portlets_fallback',
[('rawtextColumn', (u'\n Manage portlets\n ', 10))])), ('endScope', ()),
('rawtextColumn', (u'&lt;/a&gt;\n &lt;/div&gt;', 12))])), ('endScope', ()),
('rawtextColumn', (u'\n\n ', 6)), ('setPosition', (182, 6)),
('beginI18nContext', {'source': None, 'domain': u'plone', 'target': None}),
('beginScope', {u'i18n:domain': u'plone'}), ('optTag', (u'metal:block',
None, 'metal', 0, [('startTag', (u'metal:block', [(u'i18n:domain', u'plone',
'i18n')]))], [('rawtextBeginScope', (u'\n\n ', 8, (184, 8), 0,
{u'tal:replace': u'structure provider:plone.portalfooter'})), ('optTag',
(u'div', '', None, 1, [('startEndTag', (u'div', [(u'tal:replace',
u'structure provider:plone.portalfooter', 'tal')]))], [('insertStructure',
(&lt;StringExpr u'plone.portalfooter'&gt;, {}, []))])), ('endScope', ()),
('rawtextColumn', (u'\n\n ', 6))])), ('endScope', ()), ('endI18nContext',
()), ('rawtextBeginScope', (u'\n\n &lt;div
class=&quot;visualClear&quot;&gt;&lt;!-- --&gt;&lt;/div&gt;\n
&lt;/div&gt;\n&lt;div id=&quot;kss-spinner&quot;&gt;', 22, (190, 22), 0,
{u'alt': u'', u'tal:attributes': u'src string:${portal_url}/spinner.gif'})),
('startEndTag', (u'img', [(u'tal:attributes', u'src
string:${portal_url}/spinner.gif', 'tal'), (u'alt', u'alt=&quot;&quot;'),
(u'src', None, 'insert', &lt;StringExpr u'${portal_url}/spinner.gif'&gt;,
False, None)])), ('endScope', ()), ('endScope', ()), ('endScope', ()),
('rawtextColumn', (u'&lt;/div&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n', 0))])),
('endScope', ())]}))
------------------------------

Troubleshooting Suggestions

   - The URL may be incorrect.
   - The parameters passed to this resource may be incorrect.
   - A resource that this resource relies on may be encountering an
   error.

For more detailed information about the error, please refer to the error
log.

If the error persists please contact the site maintainer. Thank you for your
patience.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20071119/7f143323/attachment-0002.html>


More information about the Product-Developers mailing list