[CMF-checkins] CVS: Products/CMFDefault - MetadataTool.py:1.26.2.2

Jens Vagelpohl jens at dataflake.org
Wed May 4 17:33:28 EDT 2005


Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv22168/CMFDefault

Modified Files:
      Tag: CMF-1_5-branch
	MetadataTool.py 
Log Message:
- CMFDefault.MetadataTool: When asked for a non-existing metadata
  policy, the tool would return the default policy unwrapped. This
  means, at a minimum, that the security declarations on the
  MetadataElementPolicy instance would never be applied correctly.
  (http://www.zope.org/Collectors/CMF/342)


=== Products/CMFDefault/MetadataTool.py 1.26.2.1 => 1.26.2.2 ===
--- Products/CMFDefault/MetadataTool.py:1.26.2.1	Thu Apr  7 12:37:46 2005
+++ Products/CMFDefault/MetadataTool.py	Wed May  4 17:33:28 2005
@@ -160,7 +160,7 @@
         try:
             return self.policies[ typ ].__of__(self)
         except KeyError:
-            return self.policies[ None ]
+            return self.policies[ None ].__of__(self)
 
     security.declareProtected(View , 'listPolicies')
     def listPolicies( self ):



More information about the CMF-checkins mailing list