- Timestamp:
- 08/12/05 00:02:20 (7 years ago)
- Location:
- trunk/src/chronolog
- Files:
-
- 2 added
- 1 removed
- 3 modified
-
interfaces.py (modified) (9 diffs)
-
keys/browser/configure.zcml (modified) (1 diff)
-
keys/configure.zcml (modified) (2 diffs)
-
keys/domainscollection.py (deleted)
-
keys/simpledomain.py (added)
-
keys/tests.py (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chronolog/interfaces.py
r18 r21 52 52 53 53 54 class TimeLogKeyLookupError(LookupError):55 """A key could not be found for a given id"""56 57 58 54 class ITimeLogKeyDomain(IEnumerableMapping): 59 55 """A key domain 60 56 61 A key domain is the source where keys are obtained, like principalsor62 projects. ITimeLogKeys are keyed on their id, and their domain property63 should be set to the id of this domain.57 A key domain is the source where keys are obtained, like 'principals' or 58 'projects'. ITimeLogKeys are keyed on their id. Domains are looked up as 59 named utilities. 64 60 65 61 """ … … 67 63 title=_(u'Id'), 68 64 description=_(u'The identifier of the domain.'), 69 required=True) 70 71 title = TextLine( 72 title=_(u'Title'), 73 description=_(u'The domain title for UI display'), 74 required=False) 75 76 description = Text( 77 title=_(u'Description'), 78 description=_(u'A detailed description of the domain.'), 79 required=False) 80 81 82 class ITimeLogKeyDomainsCollection(IEnumerableMapping): 83 """A utility providing a collection of ITimeLogKeyDomians 84 85 ITimeLogKeyDomains are keyed on their id. 86 87 """ 65 required=True, 66 readonly=True) 88 67 89 68 … … 98 77 allowed to delete it. 99 78 100 .. note::101 All keys **must** be from obtainable from the domains collection102 available as utility.103 104 79 """ 105 80 keys = Set( … … 143 118 None can be discarded from the store completely. 144 119 145 .. note::146 All keys on entries **must** be from obtainable from the domains147 collection available as utility.148 149 120 """ 150 121 … … 166 137 ((A, B, D),) 167 138 168 .. note::169 All keys **must** be from obtainable from the domains collection170 available as utility.171 172 139 """ 173 140 … … 184 151 eligable, but a log entry against (A, B, C) is. 185 152 186 .. note::187 All keys **must** be from obtainable from the domains collection188 available as utility.189 190 153 """ 191 154 … … 204 167 logged. Never terminates. 205 168 206 .. note::207 All keys **must** be from obtainable from the domains collection208 available as utility.209 210 169 """ 211 170 … … 225 184 limited by the start_date and end_date. 226 185 227 .. note::228 All keys **must** be from obtainable from the domains collection229 available as utility.230 231 186 """ 232 187 … … 236 191 237 192 A timesheet is a view on a ITimeLogStore for a given time period and keys. 238 239 .. note::240 All keys **must** be from obtainable from the domains collection241 available as utility.242 193 243 194 """ -
trunk/src/chronolog/keys/browser/configure.zcml
r16 r21 3 3 xmlns="http://namespaces.zope.org/browser"> 4 4 5 <!-- key domains collection -->5 <!-- simple key domain --> 6 6 <tool 7 interface="chronolog.interfaces.ITimeLogKeyDomain sCollection"8 title="TimeLog Key Domain s Collection"7 interface="chronolog.interfaces.ITimeLogKeyDomain" 8 title="TimeLog Key Domain" 9 9 description="TimeLog entries are logged against a set of keys coming 10 from various domains. The domains are looked up in a domains 11 collection" 12 unique="True" 10 from various domains. These domains are looked up as named 11 utilities." 13 12 /> 14 13 15 14 <addMenuItem 16 title="TimeLog Key Domains Collection"15 title="TimeLog Simple Key Domain" 17 16 description="TimeLog entries are logged against a set of keys coming 18 from various domains. The domains are looked up in a domains 19 collection" 20 class="..domainscollection.LocalKeyDomainsCollection" 17 from various domains. This is a simple persistent domain." 18 class="..simpledomain.SimpleKeyDomain" 21 19 permission="zope.ManageContent" 22 20 /> 23 21 24 25 22 </configure> -
trunk/src/chronolog/keys/configure.zcml
r19 r21 2 2 xmlns="http://namespaces.zope.org/zope"> 3 3 4 <localUtility class=". domainscollection.LocalKeyDomainsCollection">4 <localUtility class=".simpledomain.SimpleKeyDomain"> 5 5 <implements 6 6 interface="zope.app.container.interfaces.IContainerNamesContainer" … … 14 14 interface="zope.app.container.interfaces.IWriteContainer" 15 15 /> 16 <factory id="chronolog.keys.domainscollection" />17 16 </localUtility> 18 17 19 18 <adapter 20 for=". domainscollection.ILocalTimeLogKeyDomainsCollection"19 for=".simpledomain.ILocalTimeLogKeyDomain" 21 20 provides="zope.app.container.interfaces.INameChooser" 22 21 factory="..common.IdAttributeNameChooser"
