Ignore:
Timestamp:
27 Jul 2010, 08:16:27 (14 years ago)
Author:
uli
Message:

Add a factory for applicants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/applicants.py

    r5272 r5318  
    2121##
    2222import grok
     23from zope.component.interfaces import IFactory
    2324from zope.schema.fieldproperty import FieldProperty
    2425from waeup.sirp.interfaces import IWAeUPSIRPPluggable
     
    103104        self.import_from = None
    104105
     106class ApplicantFactory(grok.GlobalUtility):
     107    """A factory for faculty containers.
     108    """
     109    grok.implements(IFactory)
     110    grok.name(u'waeup.Applicant')
     111    title = u"Create a new applicant.",
     112    description = u"This factory instantiates new applicant instances."
     113
     114    def __call__(self, *args, **kw):
     115        return Applicant()
     116
     117    def getInterfaces(self):
     118        return implementedBy(Appliant)
     119
     120       
    105121class ApplicantContainer(grok.Container):
    106122    grok.implements(IApplicantContainer)
     
    125141                    site, ))
    126142        return
     143
Note: See TracChangeset for help on using the changeset viewer.