On 26/05/13 14:26, Andreas Jung wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Module Products.PageTemplates.ZRPythonExpr, line 48, in __call__
- __traceback_info__: scale.scale('image', width=360, height=230).tag()
Module PythonExpr, line 1, in <expression>
Module AccessControl.ImplPython, line 675, in guarded_getattr
AttributeError: 'NoneType' object has no attribute 'tag'
HV> this happens when your template refers to an image field with is empty; you have to use something like this:
<img tal:define="scales context/@@images;scale python: scales.scale('image', width=360, height=230)"
tal:condition="scale"
tal:replace="structure scale/tag" />
see https://github.com/plone/plone.app.imaging for more information.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Product-Developers mailing list [email protected] https://lists.plone.org/mailman/listinfo/plone-product-developers
