Changeset 5645 for main/waeup.sirp


Ignore:
Timestamp:
20 Jan 2011, 09:05:03 (14 years ago)
Author:
uli
Message:

Update interfaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applications/interfaces.py

    r5638 r5645  
    2525from waeup.sirp.interfaces import IWAeUPObject
    2626
    27 class IApplicationTerm(IWAeUPObject):
    28     """An application term is a school term for which students can apply.
     27class IApplicationsRoot(IWAeUPObject):
     28    """A container for student application containers.
     29    """
     30    def addApplicationContainer(container, name=None):
     31        """Add an application container.
    2932
    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`.
    3335
    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
     46class IApplicationContainer(IWAeUPObject):
     47    """An application container contains student applications.
     48
    3649    """
    3750    id = schema.TextLine(
     
    4053        )
    4154
    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',
    4463        required = False,
    4564        default = u'Not set.'
     
    4766
    4867    startdate = schema.Date(
    49         title = u'Date when the term starts',
     68        title = u'Date when the application period starts',
    5069        required = False,
    5170        default = None,
     
    5372
    5473    enddate = schema.Date(
    55         title = u'Date when the term ends',
     74        title = u'Date when the application period ends',
    5675        required = False,
    5776        default = None,
    5877        )
    5978
    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        )
    6984
    7085    def archive(id=None):
Note: See TracChangeset for help on using the changeset viewer.