[Zope3-checkins] SVN: Zope3/branches/Zope-3.1/src/zope/security/checker.py merge -r 37670:37671 from trunk

Stuart Bishop stuart at stuartbishop.net
Tue Aug 2 19:10:08 EDT 2005


Log message for revision 37672:
  merge -r 37670:37671 from trunk

Changed:
  U   Zope3/branches/Zope-3.1/src/zope/security/checker.py

-=-
Modified: Zope3/branches/Zope-3.1/src/zope/security/checker.py
===================================================================
--- Zope3/branches/Zope-3.1/src/zope/security/checker.py	2005-08-02 22:50:05 UTC (rev 37671)
+++ Zope3/branches/Zope-3.1/src/zope/security/checker.py	2005-08-02 23:10:08 UTC (rev 37672)
@@ -659,6 +659,14 @@
     zope.interface.declarations.Declaration: _Declaration_checker,
 }
 
+# If we are running with Python 2.4+, setup security on the builtin
+# set and frozenset types.
+try:
+    _default_checkers[set] = _setChecker
+    _default_checkers[frozenset] = _setChecker
+except NameError:
+    pass
+
 def _clear():
     _checkers.clear()
     _checkers.update(_default_checkers)



More information about the Zope3-Checkins mailing list