[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/grants - principalroleview.py:1.1.2.2

Fred L. Drake, Jr. fred@zope.com
Tue, 24 Dec 2002 02:23:54 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/security/grants
In directory cvs.zope.org:/tmp/cvs-serv22428

Modified Files:
      Tag: NameGeddon-branch
	principalroleview.py 
Log Message:
- fix & clean up imports
- general cleanup, normalize whitespace


=== Zope3/src/zope/app/browser/security/grants/principalroleview.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/security/grants/principalroleview.py:1.1.2.1	Mon Dec 23 14:31:10 2002
+++ Zope3/src/zope/app/browser/security/grants/principalroleview.py	Tue Dec 24 02:23:53 2002
@@ -2,34 +2,31 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """ Management view component for principal-role management (Zope2's
     "local roles").
 
 $Id$
 """
-
 import time
-from Zope.App.PageTemplate import ViewPageTemplateFile
-from zope.publisher.browser import BrowserView
-from zope.component.contextdependent import ContextDependent
-from zope.component import getService, getAdapter
 
+from zope.app.interfaces.security import IPermission
 from zope.app.interfaces.security import IPrincipalRoleManager
 from zope.app.interfaces.security import IPrincipalRoleMap
-
-from zope.app.interfaces.security import IPermission
 from zope.app.interfaces.security import IRole
-
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
 from zope.app.security.settings import Unset, Deny, Allow
+from zope.component import getService, getAdapter
+from zope.component.contextdependent import ContextDependent
+from zope.publisher.browser import BrowserView
 
 
 class PrincipalRoleView(BrowserView):
@@ -61,7 +58,7 @@
                 auth_service = getService(self.context, 'Authentication')
                 principals = [auth_service.getPrincipal(principal)
                               for principal in principals]
-            
+
 
         if roles is None:
             roles = self.request.get('roles')
@@ -129,4 +126,3 @@
 
     def listAvailableValues(self):
         return (Unset.getName(), Allow.getName(), Deny.getName())
-