Ticket #13506 (closed Bug: fixed)

Opened 13 months ago

Last modified 12 months ago

AttributeError: 'FilesystemResourceDirectory' object has no attribute 'objectIds'

Reported by: neaj Owned by: ldr
Priority: minor Milestone: 4.x
Component: Diazo (plone.app.theming) Version: 4.2
Keywords: patch Cc:

Description

After installing a plone.app.theming theme, I get the following traceback:

2013-03-31 14:35:44 ERROR plone.transformchain Unexpected error whilst trying to apply transform chain
Traceback (most recent call last):
  File "/home/jean/.buildout/eggs-py2.6/plone.transformchain-1.0.2-py2.6.egg/plone/transformchain/transformer.py", line 48, in __call__
    newResult = handler.transformIterable(result, encoding)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.theming-1.0.4-py2.6.egg/plone/app/theming/transform.py", line 257, in transformIterable
    params[name] = quote_param(expression(expressionContext))
  File "/home/jean/.buildout/eggs-py2.6/Zope2-2.13.19-py2.6.egg/Products/PageTemplates/ZRPythonExpr.py", line 48, in __call__
    return eval(self._code, vars, {})
  File "PythonExpr", line 1, in <expression>
  File "/home/jean/.buildout/eggs-py2.6/plone.memoize-1.1.1-py2.6.egg/plone/memoize/view.py", line 47, in memogetter
    value = cache[key] = func(*args, **kwargs)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.layout-2.2.8-py2.6.egg/plone/app/layout/globals/context.py", line 193, in is_portal_root
    (self.is_default_page() and
  File "/home/jean/.buildout/eggs-py2.6/plone.memoize-1.1.1-py2.6.egg/plone/memoize/view.py", line 47, in memogetter
    value = cache[key] = func(*args, **kwargs)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.layout-2.2.8-py2.6.egg/plone/app/layout/globals/context.py", line 186, in is_default_page
    return view.isDefaultPage(context)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.layout-2.2.8-py2.6.egg/plone/app/layout/navigation/defaultpage.py", line 24, in isDefaultPage
    return isDefaultPage(aq_inner(self.context), obj)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.layout-2.2.8-py2.6.egg/plone/app/layout/navigation/defaultpage.py", line 41, in isDefaultPage
    parentDefaultPage = getDefaultPage(container)
  File "/home/jean/.buildout/eggs-py2.6/plone.app.layout-2.2.8-py2.6.egg/plone/app/layout/navigation/defaultpage.py", line 71, in getDefaultPage
    for id in context.objectIds():
AttributeError: 'FilesystemResourceDirectory' object has no attribute 'objectIds'

The attached patch fixes it, but I don't know if FilesystemResourceDirectory objects are supposed to serve default pages.

Attachments

13506.diff Download (963 bytes) - added by neaj 13 months ago.

Change History

comment:1 Changed 13 months ago by neaj

  • Owner set to ldr
  • Component changed from Unknown to Diazo (plone.app.theming)

comment:2 Changed 13 months ago by kleist

  • Keywords patch added
  • Status changed from new to confirmed

Changed 13 months ago by neaj

comment:4 Changed 12 months ago by maartenkling

  • Status changed from confirmed to closed
  • Resolution set to fixed

This is merged, tnx for submitting and fixing

Note: See TracTickets for help on using tickets.