[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries -
metadirectives.py:1.3
Jim Fulton
jim at zope.com
Mon Aug 4 08:11:50 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/security/registries
In directory cvs.zope.org:/tmp/cvs-serv14702/src/zope/app/security/registries
Modified Files:
metadirectives.py
Log Message:
Changed the principal schemas to not use message ids. There's no point
in translating info for bootstrap principals.
=== Zope3/src/zope/app/security/registries/metadirectives.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/security/registries/metadirectives.py:1.2 Sun Aug 3 15:08:39 2003
+++ Zope3/src/zope/app/security/registries/metadirectives.py Mon Aug 4 07:11:45 2003
@@ -49,7 +49,24 @@
class IDefineRoleDirective(IBaseDefineDirective):
"""Define a new role."""
-class IDefinePrincipalDirective(IBaseDefineDirective):
+class IBasePrincipalDirective(Interface):
+
+ id = TextLine(
+ title=u"Id",
+ description=u"Id as which this object will be known and used.",
+ required=True)
+
+ title = TextLine(
+ title=u"Title",
+ description=u"Provides a title for the object.",
+ required=True)
+
+ description = TextLine(
+ title=u"Title",
+ description=u"Provides a description for the object.",
+ required=False)
+
+class IDefinePrincipalDirective(IBasePrincipalDirective):
"""Define a new principal."""
login = TextLine(
@@ -62,6 +79,6 @@
description=u"Specifies the Principal's Password.",
required=True)
-class IDefineUnauthenticatedPrincipalDirective(IBaseDefineDirective):
+class IDefineUnauthenticatedPrincipalDirective(IBasePrincipalDirective):
"""Define a new unauthenticated principal."""
More information about the Zope3-Checkins
mailing list