[Zope3-checkins] CVS: Zope3/src/zope/app/security -
_protections.py:1.5.6.1
Jim Fulton
cvs-admin at zope.org
Thu Nov 20 16:14:27 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv15106/src/zope/app/security
Modified Files:
Tag: adaptergeddon-branch
_protections.py
Log Message:
Added Backward compatability support.
=== Zope3/src/zope/app/security/_protections.py 1.5 => 1.5.6.1 ===
--- Zope3/src/zope/app/security/_protections.py:1.5 Sun Sep 21 13:32:43 2003
+++ Zope3/src/zope/app/security/_protections.py Thu Nov 20 16:13:56 2003
@@ -114,4 +114,6 @@
# add __parent__ and __name__ to always available names
import zope.security.checker
- zope.security.checker._always_available.extend(['__name__', '__parent__'])
+ for name in ['__name__', '__parent__']:
+ if name not in zope.security.checker._always_available:
+ zope.security.checker._always_available.append(name)
More information about the Zope3-Checkins
mailing list