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

Sidnei da Silva sidnei@x3ng.com.br
Tue, 11 Feb 2003 09:42:04 -0500


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

Modified Files:
      Tag: paris-copypasterename-branch
	permissionwidget.py 
Log Message:
Updating from HEAD to make sure everything still works before merging

=== Zope3/src/zope/app/browser/security/permissionwidget.py 1.3 => 1.3.2.1 ===
--- 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	Tue Feb 11 09:41:02 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: