[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.21 context.py:1.3 simplepolicies.py:1.4
Martijn Faassen
m.faassen@vet.uu.nl
Thu, 1 May 2003 15:36:18 -0400
Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv30407/zope/security
Modified Files:
checker.py context.py simplepolicies.py
Log Message:
Importgeddon part the second. Removed unused imports throughout the
source tree. This should have taken care of most unused imports
in Zope 3. :)
=== Zope3/src/zope/security/checker.py 1.20 => 1.21 ===
--- Zope3/src/zope/security/checker.py:1.20 Fri Apr 25 08:48:01 2003
+++ Zope3/src/zope/security/checker.py Thu May 1 15:35:47 2003
@@ -20,12 +20,10 @@
import types
import datetime
-from zope.i18n.messageid import MessageID
from zope.security.interfaces import IChecker
from zope.exceptions \
- import Unauthorized, ForbiddenAttribute, Forbidden, DuplicationError
+ import Unauthorized, ForbiddenAttribute, DuplicationError
from zope.interface.interfaces import IInterface
-from zope.interface.implements import flattenInterfaces
from zope.interface import Interface
from zope.security._proxy import _Proxy as Proxy
from zope.security.interfaces import ISecurityProxyFactory
=== Zope3/src/zope/security/context.py 1.2 => 1.3 ===
--- Zope3/src/zope/security/context.py:1.2 Thu Mar 13 13:49:16 2003
+++ Zope3/src/zope/security/context.py Thu May 1 15:35:47 2003
@@ -30,6 +30,8 @@
)
"""
+ __implements__ = ISecurityContext
+
def __init__(self, user):
self.stack = []
=== Zope3/src/zope/security/simplepolicies.py 1.3 => 1.4 ===
--- Zope3/src/zope/security/simplepolicies.py:1.3 Fri Apr 11 18:15:48 2003
+++ Zope3/src/zope/security/simplepolicies.py Thu May 1 15:35:47 2003
@@ -14,7 +14,6 @@
""" Simple ISecurityPolicy implementations."""
from zope.security.interfaces import ISecurityPolicy
-from zope.exceptions import Unauthorized
from zope.security.management import system_user
import zope.security.checker