[Checkins] SVN: z3c.jbot/trunk/ Fixed an issue where certain Five templates would not be jbotted under Chameleon.
Malthe Borch
mborch at gmail.com
Tue Sep 7 08:18:29 EDT 2010
Log message for revision 116211:
Fixed an issue where certain Five templates would not be jbotted under Chameleon.
Changed:
U z3c.jbot/trunk/CHANGES.txt
U z3c.jbot/trunk/z3c/jbot/patches.py
-=-
Modified: z3c.jbot/trunk/CHANGES.txt
===================================================================
--- z3c.jbot/trunk/CHANGES.txt 2010-09-07 12:05:40 UTC (rev 116210)
+++ z3c.jbot/trunk/CHANGES.txt 2010-09-07 12:18:29 UTC (rev 116211)
@@ -4,6 +4,7 @@
0.6.3 (unreleased)
------------------
+- Fixed compatibility with Plone 3.x. [malthe]
0.6.2 (2010-02-17)
------------------
Modified: z3c.jbot/trunk/z3c/jbot/patches.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/patches.py 2010-09-07 12:05:40 UTC (rev 116210)
+++ z3c.jbot/trunk/z3c/jbot/patches.py 2010-09-07 12:18:29 UTC (rev 116211)
@@ -70,13 +70,12 @@
try:
from Products.Five.browser.pagetemplatefile import \
ViewPageTemplateFile as pt_class
- from Products.Five.browser.pagetemplatefile import \
- BoundPageTemplate
+ zope_bind = pt_class.__get__
except ImportError:
pass
+except AttributeError:
+ pass
else:
- zope_bind = pt_class.__get__
-
def five_get_and_bind(template, view=None, cls=None):
inst = get(template, view, cls)
if inst._v_last_read is False:
More information about the checkins
mailing list