Changeset 12
- Timestamp:
- 08/06/05 22:29:15 (7 years ago)
- Files:
-
- 1 modified
-
trunk/src/chronolog/interfaces.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chronolog/interfaces.py
r11 r12 24 24 25 25 Every ITimeLogEntry is stored keyed on a set of ITimeLogKey. Keys are 26 unique for a given prefix and id; the prefixdenotes the source from26 unique for a given domain and id; the domain denotes the source from 27 27 which they where obtained. 28 28 29 29 """ 30 prefix= TextLine(31 title=u' Prefix',32 description=u'The source identifier of the key.',30 domain = TextLine( 31 title=u'Domain', 32 description=u'The id of the domain this key is part of.', 33 33 readonly=True, 34 34 required=True) … … 54 54 55 55 56 class ITimeLogKeySource(Interface): 57 """A source of keys 58 59 For any given key prefix only one source can be used. 60 61 """ 62 prefix = TextLine( 63 title=u'Prefix', 64 description=u'The source identifier of the key.', 65 required=True) 56 class ITimeLogKeyDomain(Interface): 57 """A key domain 58 59 A key domain is the source where keys are obtained, like principals or 60 projects. 61 62 """ 63 id = TextLine( 64 title=u'Id', 65 description=u'The identifier of the domain.', 66 required=True) 67 68 title = TextLine( 69 title=u'Title', 70 description=u'The domain title for UI display', 71 required=False) 72 73 description = Text( 74 title=u'Description', 75 description=u'A detailed description of the domain.', 76 required=False) 66 77 67 78 def getKey(id): … … 73 84 """ 74 85 def listKeys(): 75 """Return an iterable of all keys in this source"""76 77 78 class ITimeLogKey SourcesCollection(IEnumerableMapping):79 """A collection of ITimeLogKey Sources80 81 ITimeLogKey Sources are keyed on their prefixes.86 """Return an iterable of all keys in this domain""" 87 88 89 class ITimeLogKeyDomainsCollection(IEnumerableMapping): 90 """A collection of ITimeLogKeyDomians 91 92 ITimeLogKeyDomains are keyed on their id. 82 93 83 94 """
