Changeset 6076


Ignore:
Timestamp:
14 May 2011, 00:36:06 (13 years ago)
Author:
uli
Message:

Remove trailing whitespaces.

File:
1 edited

Legend:

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

    r6075 r6076  
    44## Started on  Sun Jan 16 15:30:01 2011 Uli Fouquet
    55## $Id$
    6 ## 
     6##
    77## Copyright (C) 2011 Uli Fouquet
    88## This program is free software; you can redistribute it and/or modify
     
    1010## the Free Software Foundation; either version 2 of the License, or
    1111## (at your option) any later version.
    12 ## 
     12##
    1313## This program is distributed in the hope that it will be useful,
    1414## but WITHOUT ANY WARRANTY; without even the implied warranty of
    1515## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1616## GNU General Public License for more details.
    17 ## 
     17##
    1818## You should have received a copy of the GNU General Public License
    1919## along with this program; if not, write to the Free Software
     
    7676    def getToken(self, value):
    7777        return value[0].lower()
    78        
     78
    7979    def getTitle(self, value):
    8080        if value == 'm':
     
    8282        if value == 'f':
    8383            return 'female'
    84            
     84
    8585class ApplicantContainerProviderSource(BasicSourceFactory):
    8686    """A source offering all available applicants container types.
     
    9898      >>> my_applicants_container.container_title
    9999      'Pretty'
    100    
     100
    101101    """
    102102    def getValues(self):
     
    137137    """
    138138    pass
    139    
     139
    140140
    141141class IApplicantsContainer(IWAeUPObject):
     
    149149        u'classattribute: description for type of container')
    150150
    151    
     151
    152152    code = schema.TextLine(
    153153        title = u'Code',
     
    156156        required = True,
    157157        readonly = True,
    158         )   
    159    
     158        )
     159
    160160    provider = schema.Choice(
    161161        title = u'Applicants container type',
     
    163163        default = None,
    164164        source = ApplicantContainerProviderSource(),
    165         )       
    166    
     165        )
     166
    167167    title = schema.TextLine(
    168168        title = u'Title of the type of applicants stored here',
     
    170170        default = u'Untitled',
    171171        )
    172    
     172
    173173    description = schema.Text(
    174174        title = u'Human readable description in reST format',
     
    211211
    212212        Optionally archive the applicants.
    213        
     213
    214214        If id is `None`, all applicants are archived.
    215215
     
    234234        required = True,
    235235        readonly = False,
    236         )   
     236        )
    237237
    238238IApplicantsContainerAdd['code'].order =  IApplicantsContainer['code'].order
     
    427427        )
    428428    # XXX: Total score???
    429    
     429
    430430    #
    431431    # Application Data
     
    511511        )
    512512
    513    
     513
    514514class IApplicant(IApplicantBaseData):
    515515    """An applicant.
     
    686686        required = False,
    687687        )
    688    
     688
    689689    #
    690690    # Application Data
     
    714714        )
    715715
    716    
     716
    717717class IApplicantPrincipalInfo(IPrincipalInfo):
    718718    """Infos about principals that are applicants.
     
    775775
    776776    .. THE FOLLOWING SHOULD GO INTO SPHINX DOCS (and be tested)
    777    
     777
    778778    Samples
    779779    *******
    780    
     780
    781781    Given, you had an IApplicantsContainer implementation somewhere
    782782    and you would like to make it findable on request, then you would
     
    809809      >>> p
    810810      <MyContainerProvider object at 0x...>
    811      
     811
    812812    An applicants container would then be created like this:
    813813
Note: See TracChangeset for help on using the changeset viewer.