[CMF-checkins] CVS: Products/CMFDefault - MetadataTool.py:1.28
Jens Vagelpohl
jens at dataflake.org
Wed May 4 17:34:47 EDT 2005
Update of /cvs-repository/Products/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv22476/CMFDefault
Modified Files:
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.27 => 1.28 ===
--- Products/CMFDefault/MetadataTool.py:1.27 Thu Apr 7 12:38:47 2005
+++ Products/CMFDefault/MetadataTool.py Wed May 4 17:34:46 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