[Zope3-checkins] CVS: Zope3/src/zope/app/security - permission.py:1.7
Fred L. Drake, Jr.
fred@zope.com
Mon, 14 Apr 2003 14:22:07 -0400
Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv28909/src/zope/app/security
Modified Files:
permission.py
Log Message:
Rename IValueSet to IEnumerated, and ValueSet to Enumerated.
Treat these more like mixins than like directly useful things.
=== Zope3/src/zope/app/security/permission.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/security/permission.py:1.6 Fri Mar 7 16:13:49 2003
+++ Zope3/src/zope/app/security/permission.py Mon Apr 14 14:21:36 2003
@@ -16,7 +16,7 @@
$Id$
"""
-from zope.schema import ValueSet
+from zope.schema import Enumerated, Field
from zope.schema.interfaces import ValidationError
from zope.component import getService
from zope.app.services.servicenames import Permissions
@@ -29,7 +29,7 @@
if not getService(context, Permissions).getPermission(permission_id):
raise ValueError("Undefined permission id", permission_id)
-class PermissionField(ValueSet):
+class PermissionField(Enumerated, Field):
__doc__ = IPermissionField.__doc__
__implements__ = IPermissionField