Changeset 7233 for main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
- Timestamp:
- 28 Nov 2011, 21:04:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py
r7225 r7233 23 23 from zc.sourcefactory.basic import BasicSourceFactory 24 24 from zope import schema 25 from zope.pluggableauth.interfaces import IPrincipalInfo 26 from zope.security.interfaces import IGroupClosureAwarePrincipal as IPrincipal 25 27 from zope.component import getUtility 26 28 from zope.component.interfaces import IObjectEvent … … 232 234 required = True,) 233 235 236 class ISIRPPrincipalInfo(IPrincipalInfo): 237 """Infos about principals that are users of WAeUP SIRP. 238 """ 239 email = Attribute("The email address of a user") 240 phone = Attribute("The phone number of a user") 241 242 243 class ISIRPPrincipal(IPrincipal): 244 """A principle for WAeUP SIRP. 245 246 This interface extends zope.security.interfaces.IPrincipal and 247 requires also an `id` and other attributes defined there. 248 """ 249 250 email = schema.TextLine( 251 title = u'Email', 252 description = u'', 253 required=False,) 254 255 phone = schema.Int( 256 title = u'Phone', 257 description = u'', 258 required=False,) 234 259 235 260 class IUserAccount(IWAeUPObject): … … 255 280 required = True, 256 281 constraint=validate_email, 282 ) 283 284 phone = schema.Int( 285 title = u'Phone', 286 default = None, 287 required = True, 257 288 ) 258 289
Note: See TracChangeset for help on using the changeset viewer.