- Timestamp:
- 13 May 2011, 15:25:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py
r5884 r6069 25 25 import grok 26 26 from waeup.sirp.applicants.interfaces import ( 27 IApplicantsContainer, IApplicantsContainerProvider, 27 IApplicantsContainer, IApplicantsContainerAdd, 28 IApplicantsContainerProvider, 28 29 ) 30 from zope.schema.fieldproperty import FieldProperty 29 31 30 32 class ApplicantsContainer(grok.Container): 31 33 """An applicants container contains university applicants. 32 34 """ 33 grok.implements(IApplicantsContainer) 35 grok.implements(IApplicantsContainer,IApplicantsContainerAdd) 36 #grok.provides(IApplicantsContainer) 34 37 35 38 title = u'Simple applicant container' … … 38 41 enddate = None 39 42 strict_deadline = True 40 41 @property 42 def name(self): 43 return getattr(self, '__name__', None) 43 provider = None 44 code = None 44 45 45 46 def archive(self, app_ids=None): … … 74 75 """ 75 76 raise NotImplemented() 76 77 77 78 class ApplicantsContainerProvider(grok.GlobalUtility): 78 79 """A utility that provides basic applicants containers.
Note: See TracChangeset for help on using the changeset viewer.