#9 — EasySlider View fails under Plone4

by Rebel X last modified Aug 28, 2010 07:27 AM
State Resolved
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by Rebel X
Submitted on Aug 18, 2010
Responsible Nathan Van Gheem
Target release:
Plone setup:
- Plone4.0rc1
- collective.easyslider 0.3.1

I created a folder, added several images and selected EasySlider View as the default view for this folder. This results in the following error:

AttributeError: 'InterfaceClass' object has no attribute 'isImplementedBy'

(see below for the entire error massage)

This may be related to Plone4 using a newer version of zope.interface, where 'isImplementedBy' is deprecated. I checked http://pypi.python.org/pypi/zope.interface and under version 3.1.0 it says:

Deprecated 'isImplementedBy' and 'isImplementedByInstancesOf' APIs in favor of 'implementedBy' and 'providedBy'.

Here is the entire error message:

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 Products.Five.browser.metaconfigure, line 477, in __call__
  Module Products.Five.browser.pagetemplatefile, line 126, in __call__
  Module Products.Five.browser.pagetemplatefile, line 60, in __call__
  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 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 819, in do_loop_tal
  Module zope.tales.tales, line 682, in setRepeat
  Module zope.tales.tales, line 696, in evaluate
   - URL: /opt/Plone_sites/Plone4rc1_test/buildout-cache/eggs/collective.easyslider-0.3.1-py2.6.egg/collective/easyslider/browser/sliderview.pt
   - Line 45, Column 12
   - Expression: <PathExpr standard:u'view/get_items'>
   - Names:
      {'args': (),
       'container': <ATFolder at /test/projecten>,
       'context': <ATFolder at /test/projecten>,
       'default': <object object at 0x7fe31d1d6ad0>,
       'here': <ATFolder at /test/projecten>,
       'loop': {},
       'nothing': None,
       'options': {},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x6b89aa0>,
       'request': <HTTPRequest, URL=http://10.0.0.37:8017/test/projecten/sliderview>,
       'root': <Application at >,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x49edf50>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>,
       'view': <Products.Five.metaclass.SimpleViewClass from /opt/Plone_sites/Plone4rc1_test/buildout-cache/eggs/collective.easyslider-0.3.1-py2.6.egg/collective/easyslider/browser/sliderview.pt object at 0x6209dd0>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x68b2fd0>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 157, in _eval
  Module Products.PageTemplates.Expressions, line 119, in render
  Module collective.easyslider.browser.views, line 21, in get_items
AttributeError: 'InterfaceClass' object has no attribute 'isImplementedBy'
Added by Nathan Van Gheem on Aug 28, 2010 07:27 AM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)vangheem
finally got around to fixing this. Sorry about the wait...

No responses can be added.