- 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/interfaces.py
r5645 r5676 20 20 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 21 ## 22 """Interfaces regarding student applica tions and related components.22 """Interfaces regarding student applicants and related components. 23 23 """ 24 24 from zope import schema 25 25 from waeup.sirp.interfaces import IWAeUPObject 26 26 27 class IApplica tionsRoot(IWAeUPObject):28 """A container for student applicationcontainers.27 class IApplicantsRoot(IWAeUPObject): 28 """A container for university applicants containers. 29 29 """ 30 def addApplica tionContainer(container, name=None):31 """Add an applica tioncontainer.30 def addApplicantsContainer(container, name=None): 31 """Add an applicants container. 32 32 33 Adds an applica tioncontainer that implements `interface`33 Adds an applicants container that implements `interface` 34 34 under the name `name`. 35 35 36 36 `container` the container instance to be added. Should 37 implement :class:`IApplica tionContainer`.37 implement :class:`IApplicantsContainer`. 38 38 39 39 `name` 40 40 the name under which the container will be accessible. We 41 41 usually use names like ``pume_2011`` to indicate, that the 42 new container will contain student applications for a42 new container will contain university applicants for a 43 43 certain screening type (``pume``) and of the year 2011. 44 44 """ 45 45 46 class IApplica tionContainer(IWAeUPObject):47 """An applica tion container contains student applications.46 class IApplicantsContainer(IWAeUPObject): 47 """An applicants container contains university applicants. 48 48 49 49 """ … … 54 54 55 55 title = schema.TextLine( 56 title = u'Short description of the type of applica tions stored here.',56 title = u'Short description of the type of applicants stored here.', 57 57 required = True, 58 58 default = u'Untitled', … … 84 84 85 85 def archive(id=None): 86 """Create on-dist archive of applica tions stored in this term.86 """Create on-dist archive of applicants stored in this term. 87 87 88 If id is `None`, all applica tions are archived.88 If id is `None`, all applicants are archived. 89 89 90 90 If id contains a single id string, only the respective 91 applica tions are archived.91 applicants are archived. 92 92 93 93 If id contains a list of id strings all of the respective 94 applica tiontypes are saved to disk.94 applicants types are saved to disk. 95 95 """ 96 96 97 97 def clear(id=None, archive=True): 98 """Remove applica tions of type given by 'id'.98 """Remove applicants of type given by 'id'. 99 99 100 Optionally archive the applica tions.100 Optionally archive the applicants. 101 101 102 If id is `None`, all applica tions are archived.102 If id is `None`, all applicants are archived. 103 103 104 104 If id contains a single id string, only the respective 105 applica tions are archived.105 applicants are archived. 106 106 107 107 If id contains a list of id strings all of the respective 108 applica tiontypes are saved to disk.108 applicant types are saved to disk. 109 109 110 110 If `archive` is ``False`` none of the archive-handling is done 111 and respective applica tions are simply removed from the111 and respective applicants are simply removed from the 112 112 database. 113 113 """
Note: See TracChangeset for help on using the changeset viewer.