[Checkins] SVN: five.pt/trunk/ If template is not an acquirer, wrap it implicitly.
Malthe Borch
mborch at gmail.com
Thu May 13 08:21:55 EDT 2010
Log message for revision 112275:
If template is not an acquirer, wrap it implicitly.
Changed:
U five.pt/trunk/CHANGES.txt
U five.pt/trunk/src/five/pt/patches.py
-=-
Modified: five.pt/trunk/CHANGES.txt
===================================================================
--- five.pt/trunk/CHANGES.txt 2010-05-13 12:20:44 UTC (rev 112274)
+++ five.pt/trunk/CHANGES.txt 2010-05-13 12:21:55 UTC (rev 112275)
@@ -3,6 +3,8 @@
In next release...
+- If template is not an acquirer, wrap it implicitly. [malthe]
+
- Removed unused ``ViewletManager`` ZCML handler. [malthe]
0.10 - 2010-04-20
Modified: five.pt/trunk/src/five/pt/patches.py
===================================================================
--- five.pt/trunk/src/five/pt/patches.py 2010-05-13 12:20:44 UTC (rev 112274)
+++ five.pt/trunk/src/five/pt/patches.py 2010-05-13 12:21:55 UTC (rev 112275)
@@ -20,6 +20,7 @@
from Acquisition import aq_base
from Acquisition.interfaces import IAcquirer
+from Acquisition import ImplicitAcquisitionWrapper
try:
from Products.Five.browser.pagetemplatefile import BoundPageTemplate
@@ -67,6 +68,8 @@
if IAcquirer.providedBy(template):
template = template.__of__(self)
+ else:
+ template = ImplicitAcquisitionWrapper(template, self)
return template(self, *args, **kw)
More information about the checkins
mailing list