Changeset 18

Show
Ignore:
Timestamp:
08/10/05 13:44:45 (6 years ago)
Author:
mj
Message:

Simplify domains; they should just be mapping-like.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chronolog/interfaces.py

    r15 r18  
    5656 
    5757 
    58 class ITimeLogKeyDomain(Interface): 
     58class ITimeLogKeyDomain(IEnumerableMapping): 
    5959    """A key domain 
    6060     
    6161    A key domain is the source where keys are obtained, like principals or 
    62     projects. 
     62    projects. ITimeLogKeys are keyed on their id, and their domain property 
     63    should be set to the id of this domain. 
    6364     
    6465    """ 
     
    7778        description=_(u'A detailed description of the domain.'), 
    7879        required=False) 
    79      
    80     def getKey(id): 
    81         """Return the `ITimeLogKey` with the given id 
    82          
    83         A ``TimeLogKeyLookupError`` is raised when no key with the given id  
    84         exists. 
    85          
    86         """ 
    87     def listKeys(): 
    88         """Return an iterable of all keys in this domain""" 
    8980 
    9081