Changeset 6280


Ignore:
Timestamp:
4 Jun 2011, 14:00:09 (13 years ago)
Author:
uli
Message:

Register factory for ApplicantsContainer?.

File:
1 edited

Legend:

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

    r6198 r6280  
    2424"""
    2525import grok
     26from zope.component.factory import Factory
     27from zope.component.interfaces import IFactory
    2628from waeup.sirp.applicants.interfaces import (
    2729    IApplicantsContainer, IApplicantsContainerAdd,
     
    3436    """
    3537    grok.implements(IApplicantsContainer,IApplicantsContainerAdd)
    36     #grok.provides(IApplicantsContainer)
    3738
    3839    #: These are 'class-attributes'. Do not fiddle around with it in
     
    9798    #: :class:`ApplicantsContainer`.
    9899    factory = ApplicantsContainer
     100
     101factory = Factory(lambda : ApplicantsContainer, 'ApplicantsContainer')
     102grok.global_utility(factory, IFactory, name='waeup.ApplicantsContainer')
Note: See TracChangeset for help on using the changeset viewer.