Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py

    r7747 r7811  
    3131from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    3232from random import SystemRandom as random
    33 from waeup.sirp.interfaces import ISIRPPluggable, IObjectHistory
    34 from waeup.sirp.utils.logger import Logger
    35 from waeup.sirp.accesscodes.interfaces import (
     33from waeup.kofa.interfaces import IKOFAPluggable, IObjectHistory
     34from waeup.kofa.utils.logger import Logger
     35from waeup.kofa.accesscodes.interfaces import (
    3636    IAccessCode, IAccessCodeBatch, IAccessCodeBatchContainer
    3737    )
    38 from waeup.sirp.accesscodes.workflow import DISABLED, USED, ac_states_dict
     38from waeup.kofa.accesscodes.workflow import DISABLED, USED, ac_states_dict
    3939
    4040class AccessCode(grok.Model):
     
    4242
    4343    Implements
    44     :class:`waeup.sirp.accesscodes.interfaces.IAccessCode`. :class:`AccessCode`
     44    :class:`waeup.kofa.accesscodes.interfaces.IAccessCode`. :class:`AccessCode`
    4545    instances are normally part of an :class:`AccessCodeBatch` so
    4646    their representation (or code) is built with the containing batch
     
    6868    The state of an access code is something like 'used', 'disabled',
    6969    etc. and determined by the workflow defined in
    70     :mod:`waeup.sirp.accesscodes.workflow`. This also means that
     70    :mod:`waeup.kofa.accesscodes.workflow`. This also means that
    7171    instead of setting the status of an access code directly (you
    7272    can't do that easily, and yes, that's intentionally), you have to
    7373    trigger a transition (that might fail, if the transition is not
    7474    allowed in terms of logic or permissions). See
    75     :mod:`waeup.sirp.accesscodes.workflow` for details.
     75    :mod:`waeup.kofa.accesscodes.workflow` for details.
    7676
    7777    """
     
    139139    @property
    140140    def history(self):
    141         """A :class:`waeup.sirp.objecthistory.ObjectHistory` instance.
     141        """A :class:`waeup.kofa.objecthistory.ObjectHistory` instance.
    142142        """
    143143        history = IObjectHistory(self)
     
    285285        If the path does not exist yet, it is created. The path is
    286286        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`).
    288288        """
    289289        site = grok.getSite()
     
    403403        return
    404404
    405     logger_name = 'waeup.sirp.${sitename}.accesscodes'
     405    logger_name = 'waeup.kofa.${sitename}.accesscodes'
    406406    logger_filename = 'accesscodes.log'
    407407
     
    415415class AccessCodePlugin(grok.GlobalUtility):
    416416    grok.name('accesscodes')
    417     grok.implements(ISIRPPluggable)
     417    grok.implements(IKOFAPluggable)
    418418
    419419    def setup(self, site, name, logger):
     
    481481    `arg` tells what kind of transition to trigger. This will be a
    482482    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`.
    484484
    485485    If `toward` is ``False`` (the default) you have to pass a
Note: See TracChangeset for help on using the changeset viewer.