- Timestamp:
- 25 Jan 2011, 13:21:00 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/container.py
r5650 r5676 21 21 ## 22 22 """ 23 Containers for student applications.23 Containers for university applicants. 24 24 """ 25 25 import grok 26 from waeup.sirp.applica tions.interfaces import IApplicationContainer26 from waeup.sirp.applicants.interfaces import IApplicantsContainer 27 27 28 class Applica tionContainer(grok.Container):29 """An applica tion container contains student applications.28 class ApplicantsContainer(grok.Container): 29 """An applicants container contains university applicants. 30 30 """ 31 grok.implements(IApplica tionContainer)31 grok.implements(IApplicantsContainer) 32 32 33 33 id = None … … 39 39 40 40 def archive(self, app_ids=None): 41 """Create on-dist archive of applica tions stored in this term.41 """Create on-dist archive of applicants stored in this term. 42 42 43 If app_ids is `None`, all applica tions are archived.43 If app_ids is `None`, all applicants are archived. 44 44 45 45 If app_ids contains a single id string, only the respective 46 applica tions are archived.46 applicants are archived. 47 47 48 48 If app_ids contains a list of id strings all of the respective 49 applica tiontypes are saved to disk.49 applicants types are saved to disk. 50 50 """ 51 51 raise NotImplemented() 52 52 53 53 def clear(self, app_ids=None, archive=True): 54 """Remove applica tions of type given by 'id'.54 """Remove applicants of type given by 'id'. 55 55 56 Optionally archive the applica tions.56 Optionally archive the applicants. 57 57 58 If id is `None`, all applica tions are archived.58 If id is `None`, all applicants are archived. 59 59 60 60 If id contains a single id string, only the respective 61 applica tions are archived.61 applicants are archived. 62 62 63 63 If id contains a list of id strings all of the respective 64 applica tiontypes are saved to disk.64 applicant types are saved to disk. 65 65 66 66 If `archive` is ``False`` none of the archive-handling is done 67 and respective applica tions are simply removed from the67 and respective applicants are simply removed from the 68 68 database. 69 69 """
Note: See TracChangeset for help on using the changeset viewer.