Ignore:
Timestamp:
9 Mar 2011, 13:43:00 (14 years ago)
Author:
uli
Message:

Add an applicants container provider that delivers basic applicants
containers on request/lookup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py

    r5682 r5821  
    2424"""
    2525import grok
    26 from waeup.sirp.applicants.interfaces import IApplicantsContainer
     26from waeup.sirp.applicants.interfaces import (
     27    IApplicantsContainer, IApplicantContainerProvider,
     28    )
    2729
    2830class ApplicantsContainer(grok.Container):
     
    3335    REQUIRES_JAMBDATA = False
    3436    name = None
    35     title = None
    36     description = None
     37    title = u'Simple applicant container'
     38    description = u'Simple container for regular applicants'
    3739    startdate = None
    3840    enddate = None
     
    7880    """
    7981    REQUIRES_JAMBDATA = True
     82
     83class ApplicantsContainerProvider(grok.GlobalUtility):
     84    """A utility that provides basic applicants containers.
     85    """
     86    grok.implements(IApplicantContainerProvider)
     87    grok.name('waeup.sirp.applicant.ApplicantsContainer')
     88
     89    factory = ApplicantsContainer
Note: See TracChangeset for help on using the changeset viewer.