[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Removed unused
imports
Dmitry Vasiliev
dima at hlabs.spb.ru
Fri Jul 23 04:20:41 EDT 2004
Log message for revision 26696:
Removed unused imports
Changed:
U Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py
U Zope3/trunk/src/zope/app/security/metaconfigure.py
U Zope3/trunk/src/zope/app/security/protectclass.py
U Zope3/trunk/src/zope/app/securitypolicy/principalpermission.py
U Zope3/trunk/src/zope/app/securitypolicy/rolepermission.py
-=-
Modified: Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py 2004-07-23 08:19:09 UTC (rev 26695)
+++ Zope3/trunk/src/zope/app/publisher/browser/viewmeta.py 2004-07-23 08:20:41 UTC (rev 26696)
@@ -18,10 +18,7 @@
import os
from zope.component.exceptions import ComponentLookupError
-from zope.configuration.exceptions import ConfigurationError
-from zope.exceptions import NotFoundError
from zope.interface import implements, classImplements, Interface
-from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.exceptions import NotFoundError
from zope.security.checker import CheckerPublic, Checker
from zope.security.checker import defineChecker
@@ -29,15 +26,13 @@
from zope.app.component.interface import provideInterface
from zope.publisher.interfaces.browser import IBrowserRequest
from zope.publisher.interfaces.browser import IBrowserPublisher
-from zope.app.publisher.browser import BrowserView
from zope.app import zapi
from zope.app.component.metaconfigure import handler
from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.app.publisher.browser import BrowserView
from zope.app.publisher.browser.globalbrowsermenuservice import \
- menuItemDirective, globalBrowserMenuService
-from zope.app.security.permission import checkPermission
+ menuItemDirective
Modified: Zope3/trunk/src/zope/app/security/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/security/metaconfigure.py 2004-07-23 08:19:09 UTC (rev 26695)
+++ Zope3/trunk/src/zope/app/security/metaconfigure.py 2004-07-23 08:20:41 UTC (rev 26696)
@@ -22,7 +22,6 @@
from zope.security.management import setSecurityPolicy
from zope.app.security.interfaces import IPermission
from zope.app.security.permission import Permission
-from zope.app.security.protectclass import checkPermission
from zope.app.security.principalregistry import principalRegistry
Modified: Zope3/trunk/src/zope/app/security/protectclass.py
===================================================================
--- Zope3/trunk/src/zope/app/security/protectclass.py 2004-07-23 08:19:09 UTC (rev 26695)
+++ Zope3/trunk/src/zope/app/security/protectclass.py 2004-07-23 08:20:41 UTC (rev 26696)
@@ -19,9 +19,7 @@
from zope.security.checker import defineChecker, getCheckerForInstancesOf
from zope.security.checker import Checker, CheckerPublic
-from permission import checkPermission
-
def protectName(class_, name, permission):
"""Set a permission on a particular name."""
Modified: Zope3/trunk/src/zope/app/securitypolicy/principalpermission.py
===================================================================
--- Zope3/trunk/src/zope/app/securitypolicy/principalpermission.py 2004-07-23 08:19:09 UTC (rev 26695)
+++ Zope3/trunk/src/zope/app/securitypolicy/principalpermission.py 2004-07-23 08:20:41 UTC (rev 26696)
@@ -21,7 +21,7 @@
from zope.app.security.settings import Allow, Deny, Unset
from zope.app.security.principal import checkPrincipal
-from zope.app.security.permission import checkPermission, allPermissions
+from zope.app.security.permission import allPermissions
from zope.app.securitypolicy.securitymap import SecurityMap
from zope.app.securitypolicy.securitymap import AnnotationSecurityMap
Modified: Zope3/trunk/src/zope/app/securitypolicy/rolepermission.py
===================================================================
--- Zope3/trunk/src/zope/app/securitypolicy/rolepermission.py 2004-07-23 08:19:09 UTC (rev 26695)
+++ Zope3/trunk/src/zope/app/securitypolicy/rolepermission.py 2004-07-23 08:20:41 UTC (rev 26696)
@@ -17,14 +17,11 @@
"""
from zope.interface import implements
-from zope.app import zapi
-
from zope.app.security.settings import Allow, Deny, Unset
-from zope.app.security.permission import checkPermission, allPermissions
+from zope.app.security.permission import allPermissions
from zope.app.securitypolicy.role import checkRole
from zope.app.securitypolicy.interfaces import IRolePermissionManager
-from zope.app.securitypolicy.interfaces import IRole
from zope.app.securitypolicy.interfaces import IRolePermissionMap
from zope.app.securitypolicy.securitymap import AnnotationSecurityMap
from zope.app.securitypolicy.securitymap import SecurityMap
More information about the Zope3-Checkins
mailing list