Changeset 6141


Ignore:
Timestamp:
19 May 2011, 12:46:27 (13 years ago)
Author:
uli
Message:

Add interface for adapters that can tell about what roles are
assignable for some context object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/interfaces.py

    r6136 r6141  
    202202        """
    203203
     204class ILocalRolesAssignable(Interface):
     205    """The local roles assignable to an object.
     206    """
     207    def __call__():
     208        """Returns a list of dicts.
     209
     210        Each dict contains a ``name`` referring to the role assignable
     211        for the specified object and a `title` to describe the range
     212        of users to which this role can be assigned.
     213        """
     214
     215    def names():
     216        """Return a list of role names assignable.
     217        """
     218
    204219class IDataCenter(IWAeUPObject):
    205220    """A data center.
Note: See TracChangeset for help on using the changeset viewer.