Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collective.nitf.image viewlet fails with getField #169

Closed
hvelarde opened this issue Jul 25, 2016 · 0 comments · Fixed by #171
Closed

collective.nitf.image viewlet fails with getField #169

hvelarde opened this issue Jul 25, 2016 · 0 comments · Fixed by #171
Labels

Comments

@hvelarde
Copy link
Member

Plone 4.3 with plone.app.contenttypes installed; creating a News Article and using the default view fails with the following error:

2016-07-19T17:22:41 ERROR plone.app.viewletmanager rendering of plone.abovecontentbody in collective.nitf.image fails: getField
Traceback (most recent call last):
  File "/opt/plone/smdu.portal/eggs/plone.app.viewletmanager-2.0.9-py2.7.egg/plone/app/viewletmanager/manager.py", line 110, in render
    html.append(viewlet.render())
  File "/opt/plone/smdu.portal/eggs/zope.browserpage-3.12.2-py2.7.egg/zope/browserpage/simpleviewclass.py", line 44, in __call__
    return self.index(*args, **kw)
  File "/opt/plone/smdu.portal/eggs/Zope2-2.13.24-py2.7.egg/Products/Five/browserpagetemplatefile.py", line 125, in __call__
    return self.im_func(im_self, *args, **kw)
  File "/opt/plone/smdu.portal/eggs/Zope2-2.13.24-py2.7.egg/Products/Five/browserpagetemplatefile.py", line 59, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/opt/plone/smdu.portal/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplatepagetemplate.py", line 132, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/opt/plone/smdu.portal/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplatepagetemplate.py", line 240, in __call__
    interpreter()
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 271, in __call__
    self.interpret(self.program)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
    handlers[opcode](self, args)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 852, in do_condition
    self.interpret(block)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
    handlers[opcode](self, args)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 531, in do_optTag_tal
    self.no_tag(stuff[-2], stuff[-1])
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 513, in no_tag
    self.interpret(program)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 343, in interpret
    handlers[opcode](self, args)
  File "/opt/plone/smdu.portal/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py", line 742, in do_insertStructure_tal
    structure = self.engine.evaluateStructure(expr)
  File "/opt/plone/smdu.portal/eggs/Zope2-2.13.24-py2.7.egg/Products/PageTemplates/Expressions.py", line 218, in evaluateStructure
    text = super(ZopeContext, self).evaluateStructure(expr)
  File "/opt/plone/smdu.portal/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/tales.py", line 696, in evaluate
    return expression(self)
  File "/opt/plone/smdu.portal/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/expressions.py", line 217, in __call__
    return self._eval(econtext)
  File "/opt/plone/smdu.portal/eggs/Zope2-2.13.24-py2.7.egg/Products/PageTemplates/Expressions.py", line 147, in _eval
    ob = self._subexprs[-1](econtext)
  File "/opt/plone/smdu.portal/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/expressions.py", line 124, in _eval
    ob = self._traverser(ob, element, econtext)
  File "/opt/plone/smdu.portal/eggs/Zope2-2.13.24-py2.7.egg/Products/PageTemplates/Expressions.py", line 97, in trustedBoboAwareZopeTraverse
    request=request)
  File "/opt/plone/smdu.portal/eggs/zope.traversing-3.13.2-py2.7.egg/zope/traversing/adapters.py", line 136, in traversePathElement
    return traversable.traverse(nm, further_path)
  File "/opt/plone/smdu.portal/eggs/plone.app.imaging-1.0.13-py2.7.egg/plone/app/imaging/scaling.py", line 121, in traverse
    field = self.field(name)
  File "/opt/plone/smdu.portal/eggs/plone.app.imaging-1.0.13-py2.7.egg/plone/app/imaging/scaling.py", line 147, in field
    return self.context.getField(fieldname)
AttributeError: getField
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant