[Checkins] SVN: five.customerize/trunk/ fix authorization of TTW views

David Glick cvs-admin at zope.org
Mon Apr 16 06:16:08 UTC 2012


Log message for revision 125143:
  fix authorization of TTW views

Changed:
  U   five.customerize/trunk/CHANGES.txt
  U   five.customerize/trunk/src/five/customerize/zpt.py

-=-
Modified: five.customerize/trunk/CHANGES.txt
===================================================================
--- five.customerize/trunk/CHANGES.txt	2012-04-16 05:57:30 UTC (rev 125142)
+++ five.customerize/trunk/CHANGES.txt	2012-04-16 06:16:04 UTC (rev 125143)
@@ -4,9 +4,9 @@
 1.0.3 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Fix bug which prevented authorization of TTW views in Zope 2.12+
+  [davisagli]
 
-
 1.0.2 (2011-10-07)
 ------------------
 

Modified: five.customerize/trunk/src/five/customerize/zpt.py
===================================================================
--- five.customerize/trunk/src/five/customerize/zpt.py	2012-04-16 05:57:30 UTC (rev 125142)
+++ five.customerize/trunk/src/five/customerize/zpt.py	2012-04-16 06:16:04 UTC (rev 125143)
@@ -109,7 +109,12 @@
     def __of__(self, obj):
         return self
 
+    # Make sure this object passes the ZPublisher's security validation
+    @property
+    def __parent__(self):
+        return self.context
 
+
 class TTWViewletRenderer(object):
     """ analogon to TTWViewTemplateRenderer for viewlets """
     implements(IViewlet)



More information about the checkins mailing list