[Testbot] Plone 5.0 - Python 2.7 - Build # 3052 - Fixed! - 0 failure(s)

jenkins at plone.org jenkins at plone.org
Sun Aug 17 23:17:14 UTC 2014


-------------------------------------------------------------------------------
Plone 5.0 - Python 2.7 - Build # 3052 - Fixed!
-------------------------------------------------------------------------------

http://jenkins.plone.org/job/plone-5.0-python-2.7/3052/


-------------------------------------------------------------------------------
CHANGES
-------------------------------------------------------------------------------

Repository: plone.app.contenttypes
Branch: refs/heads/master
Date: 2014-08-17T23:50:41+02:00
Author: Philip Bauer (pbauer) <bauer at starzel.de>
Commit: https://github.com/plone/plone.app.contenttypes/commit/5ac9fd27dce631f84611a8ab5e72e174fb80f08b

fix tests

Files changed:
M plone/app/contenttypes/browser/templates/newsitem.pt

diff --git a/plone/app/contenttypes/browser/templates/newsitem.pt b/plone/app/contenttypes/browser/templates/newsitem.pt
index 93d034a..1e0e742 100644
--- a/plone/app/contenttypes/browser/templates/newsitem.pt
+++ b/plone/app/contenttypes/browser/templates/newsitem.pt
@@ -19,7 +19,7 @@
     <metal:block define-macro="content-core"
           tal:define="templateId template/getId;
                       scale_func context/@@images;
-                      scaled_image python: hasattr(context.aq_explicit, 'image') and scale_func.scale('image', scale='mini')">
+                      scaled_image python: getattr(context.aq_explicit, 'image', False) and scale_func.scale('image', scale='mini')">
 
         <div class="newsImageContainer"
              tal:condition="python: scaled_image">
@@ -43,7 +43,7 @@
              tal:content="structure context/text/output" />
 
         <div class="newsFileContainer"
-             tal:condition="python: hasattr(context.aq_explicit, 'image') and not scaled_image">
+             tal:condition="python: getattr(context.aq_explicit, 'image', False) and not scaled_image">
             <a tal:content="structure python:context.image_caption or context.image.filename"
                tal:attributes="href python:'%s/@@download/image' % context.absolute_url()">
             </a>




-------------------------------------------------------------------------------


More information about the Testbot mailing list