[Checkins] SVN: five.customerize/branches/plone-3.0-branch/src/five/customerize/utils.py the view template is stored in `_template` for some portlets

Andreas Zeidler az at zitc.de
Thu Aug 16 20:49:06 EDT 2007


Log message for revision 78886:
  the view template is stored in `_template` for some portlets

Changed:
  U   five.customerize/branches/plone-3.0-branch/src/five/customerize/utils.py

-=-
Modified: five.customerize/branches/plone-3.0-branch/src/five/customerize/utils.py
===================================================================
--- five.customerize/branches/plone-3.0-branch/src/five/customerize/utils.py	2007-08-16 20:12:28 UTC (rev 78885)
+++ five.customerize/branches/plone-3.0-branch/src/five/customerize/utils.py	2007-08-17 00:49:04 UTC (rev 78886)
@@ -13,7 +13,7 @@
 
 def findViewletTemplate(viewlet):
     """ try to find the attribute holding the template within a viewlet """
-    for attr in 'index', 'template', '__call__', 'render':
+    for attr in 'index', 'template', '_template', '__call__', 'render':
         item = getattr(viewlet, attr, None)
         if isTemplate(item):
             return attr, item



More information about the Checkins mailing list