[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Security/Grants/Views/Browser - PrincipalRoleView.py:1.5
Christian Theune
ct@gocept.com
Sat, 7 Dec 2002 12:22:39 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/Grants/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv5377/lib/python/Zope/App/Security/Grants/Views/Browser
Modified Files:
PrincipalRoleView.py
Log Message:
Uses the real names of grants.
=== Zope3/lib/python/Zope/App/Security/Grants/Views/Browser/PrincipalRoleView.py 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/Security/Grants/Views/Browser/PrincipalRoleView.py:1.4 Tue Jul 16 19:41:17 2002
+++ Zope3/lib/python/Zope/App/Security/Grants/Views/Browser/PrincipalRoleView.py Sat Dec 7 12:22:39 2002
@@ -29,7 +29,7 @@
from Zope.App.Security.IPermission import IPermission
from Zope.App.Security.IRole import IRole
-from Zope.App.Security.Settings import Unset
+from Zope.App.Security.Settings import Unset, Deny, Allow
class PrincipalRoleView(BrowserView):
@@ -128,6 +128,5 @@
return self._grid[(principal_id, role_id)]
def listAvailableValues(self):
- # XXX rather use Allow.getName() & co
- return ('Unset', 'Allow', 'Deny')
+ return (Unset.getName(), Allow.getName(), Deny.getName())