Changeset 5318 for main/waeup.sirp/branches/ulif-fasttables/src/waeup
- Timestamp:
- 27 Jul 2010, 08:16:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/applicants.py
r5272 r5318 21 21 ## 22 22 import grok 23 from zope.component.interfaces import IFactory 23 24 from zope.schema.fieldproperty import FieldProperty 24 25 from waeup.sirp.interfaces import IWAeUPSIRPPluggable … … 103 104 self.import_from = None 104 105 106 class 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 105 121 class ApplicantContainer(grok.Container): 106 122 grok.implements(IApplicantContainer) … … 125 141 site, )) 126 142 return 143
Note: See TracChangeset for help on using the changeset viewer.