- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py
r7747 r7811 31 31 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 32 32 from random import SystemRandom as random 33 from waeup. sirp.interfaces import ISIRPPluggable, IObjectHistory34 from waeup. sirp.utils.logger import Logger35 from waeup. sirp.accesscodes.interfaces import (33 from waeup.kofa.interfaces import IKOFAPluggable, IObjectHistory 34 from waeup.kofa.utils.logger import Logger 35 from waeup.kofa.accesscodes.interfaces import ( 36 36 IAccessCode, IAccessCodeBatch, IAccessCodeBatchContainer 37 37 ) 38 from waeup. sirp.accesscodes.workflow import DISABLED, USED, ac_states_dict38 from waeup.kofa.accesscodes.workflow import DISABLED, USED, ac_states_dict 39 39 40 40 class AccessCode(grok.Model): … … 42 42 43 43 Implements 44 :class:`waeup. sirp.accesscodes.interfaces.IAccessCode`. :class:`AccessCode`44 :class:`waeup.kofa.accesscodes.interfaces.IAccessCode`. :class:`AccessCode` 45 45 instances are normally part of an :class:`AccessCodeBatch` so 46 46 their representation (or code) is built with the containing batch … … 68 68 The state of an access code is something like 'used', 'disabled', 69 69 etc. and determined by the workflow defined in 70 :mod:`waeup. sirp.accesscodes.workflow`. This also means that70 :mod:`waeup.kofa.accesscodes.workflow`. This also means that 71 71 instead of setting the status of an access code directly (you 72 72 can't do that easily, and yes, that's intentionally), you have to 73 73 trigger a transition (that might fail, if the transition is not 74 74 allowed in terms of logic or permissions). See 75 :mod:`waeup. sirp.accesscodes.workflow` for details.75 :mod:`waeup.kofa.accesscodes.workflow` for details. 76 76 77 77 """ … … 139 139 @property 140 140 def history(self): 141 """A :class:`waeup. sirp.objecthistory.ObjectHistory` instance.141 """A :class:`waeup.kofa.objecthistory.ObjectHistory` instance. 142 142 """ 143 143 history = IObjectHistory(self) … … 285 285 If the path does not exist yet, it is created. The path is 286 286 normally ``accesscodes/imports`` below the datacenter storage 287 path (see :data:`waeup. sirp.accesscodes.Datacenter.storage`).287 path (see :data:`waeup.kofa.accesscodes.Datacenter.storage`). 288 288 """ 289 289 site = grok.getSite() … … 403 403 return 404 404 405 logger_name = 'waeup. sirp.${sitename}.accesscodes'405 logger_name = 'waeup.kofa.${sitename}.accesscodes' 406 406 logger_filename = 'accesscodes.log' 407 407 … … 415 415 class AccessCodePlugin(grok.GlobalUtility): 416 416 grok.name('accesscodes') 417 grok.implements(I SIRPPluggable)417 grok.implements(IKOFAPluggable) 418 418 419 419 def setup(self, site, name, logger): … … 481 481 `arg` tells what kind of transition to trigger. This will be a 482 482 transition id like ``'use'`` or ``'init'``, or some transition 483 target like :data:`waeup. sirp.accesscodes.workflow.INITIALIZED`.483 target like :data:`waeup.kofa.accesscodes.workflow.INITIALIZED`. 484 484 485 485 If `toward` is ``False`` (the default) you have to pass a
Note: See TracChangeset for help on using the changeset viewer.