[Zope3-checkins] CVS: Zope3/src/zope/app/security -
_protections.py:1.8
Fred L. Drake, Jr.
fred at zope.com
Fri Feb 20 11:58:01 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv22507/src/zope/app/security
Modified Files:
_protections.py
Log Message:
update to replace ZODB 4 with ZODB 3
=== Zope3/src/zope/app/security/_protections.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/security/_protections.py:1.7 Thu Feb 5 17:17:00 2004
+++ Zope3/src/zope/app/security/_protections.py Fri Feb 20 11:57:30 2004
@@ -81,7 +81,7 @@
for which_type, checker in _btree_checkers.iteritems():
defineChecker(which_type, checker)
- from persistence.list import PersistentList
+ from persistent.list import PersistentList
defineChecker(PersistentList,
NamesChecker(
@@ -89,7 +89,7 @@
'__contains__', 'index', 'count'])
)
- from persistence.dict import PersistentDict
+ from persistent.dict import PersistentDict
defineChecker(PersistentDict,
NamesChecker(['__getitem__', '__len__', '__iter__',
@@ -99,13 +99,6 @@
]
)
)
-
- # In Python 2.3 and up, PersistentMetaClass is just type.
- # It causes an error to define a new checker for type.
- from persistence import PersistentMetaClass
- if PersistentMetaClass != type:
- from zope.security.checker import _typeChecker
- defineChecker(PersistentMetaClass, _typeChecker)
# Make sure the message id gets never proxied
from zope.i18n.messageid import MessageID
More information about the Zope3-Checkins
mailing list