Changeset 5645 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 20 Jan 2011, 09:05:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applications/interfaces.py
r5638 r5645 25 25 from waeup.sirp.interfaces import IWAeUPObject 26 26 27 class IApplicationTerm(IWAeUPObject): 28 """An application term is a school term for which students can apply. 27 class IApplicationsRoot(IWAeUPObject): 28 """A container for student application containers. 29 """ 30 def addApplicationContainer(container, name=None): 31 """Add an application container. 29 32 30 I.e. something like 'Summer semester 2011'. Each term has (beside 31 an ID and a human readabe description) a date where it starts and 32 a date where it ends. 33 Adds an application container that implements `interface` 34 under the name `name`. 33 35 34 Note that term dates are not necessarily equal to application 35 terms for the respective academic term. 36 `container` the container instance to be added. Should 37 implement :class:`IApplicationContainer`. 38 39 `name` 40 the name under which the container will be accessible. We 41 usually use names like ``pume_2011`` to indicate, that the 42 new container will contain student applications for a 43 certain screening type (``pume``) and of the year 2011. 44 """ 45 46 class IApplicationContainer(IWAeUPObject): 47 """An application container contains student applications. 48 36 49 """ 37 50 id = schema.TextLine( … … 40 53 ) 41 54 42 description = schema.TextLine( 43 title = u'Human readable description', 55 title = schema.TextLine( 56 title = u'Short description of the type of applications stored here.', 57 required = True, 58 default = u'Untitled', 59 ) 60 61 description = schema.Text( 62 title = u'Human readable description in reST format', 44 63 required = False, 45 64 default = u'Not set.' … … 47 66 48 67 startdate = schema.Date( 49 title = u'Date when the termstarts',68 title = u'Date when the application period starts', 50 69 required = False, 51 70 default = None, … … 53 72 54 73 enddate = schema.Date( 55 title = u'Date when the termends',74 title = u'Date when the application period ends', 56 75 required = False, 57 76 default = None, 58 77 ) 59 78 60 def addApplicationType(interface): 61 """Add an application type. 62 63 This enables for this application term to add applications of 64 the given type. 65 66 `interface` 67 should be an interface derived from :class:`IStudentApplication`. 68 """ 79 strict_deadline = schema.Bool( 80 title = u'Forbid additions after deadline (enddate)', 81 required = True, 82 default = True, 83 ) 69 84 70 85 def archive(id=None):
Note: See TracChangeset for help on using the changeset viewer.