Changeset 4126


Ignore:
Timestamp:
10 May 2009, 14:54:44 (16 years ago)
Author:
uli
Message:

Add roles in account interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/interfaces.py

    r4112 r4126  
    33from zope.interface import Interface, Attribute
    44from zope import schema
     5from waeup.permissions import RoleSource
    56
    67class IWAeUPObject(Interface):
     
    121122        title = u'Password',
    122123        required = True,)
    123        
     124    roles = schema.List(
     125        title = u'Roles',
     126        value_type = schema.Choice(source=RoleSource()))
     127   
    124128   
    125129class IUserContainer(IWAeUPObject):
Note: See TracChangeset for help on using the changeset viewer.