[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security - permissionwidget.py:1.4

R. Sean Bowman sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:38 -0500


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

Modified Files:
	permissionwidget.py 
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService


=== Zope3/src/zope/app/browser/security/permissionwidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/security/permissionwidget.py:1.3	Tue Jan 21 16:22:00 2003
+++ Zope3/src/zope/app/browser/security/permissionwidget.py	Thu Feb  6 01:49:04 2003
@@ -19,6 +19,7 @@
 from zope.app.interfaces.browser.form import IBrowserWidget
 from zope.app.browser.form import widget
 from zope.component import getService
+from zope.component.servicenames import Permissions
 
 class BaseWidget:
 
@@ -37,7 +38,7 @@
         search_name = self.name + ".search"
         search_string = self.request.form.get(search_name, '')
 
-        service = getService(self.context.context, "Permissions")
+        service = getService(self.context.context, Permissions)
         permissions = [p.getId() for p in service.getPermissions()]
         permissions.sort()
         if search_string: