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

Remove trailing whitespaces.

File:
1 edited

Legend:

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

    r6070 r6078  
    44## Started on  Sun Jun 27 11:03:10 2010 Uli Fouquet
    55## $Id$
    6 ## 
     6##
    77## Copyright (C) 2010 Uli Fouquet & Henrik Bettermann
    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
     
    5151from waeup.sirp.widgets.datewidget import (
    5252    FriendlyDateWidget, FriendlyDateDisplayWidget)
    53    
    54 from waeup.sirp.widgets.restwidget import ReSTWidget   
     53
     54from waeup.sirp.widgets.restwidget import ReSTWidget
    5555
    5656#from zope.formlib.objectwidget import ObjectWidget
     
    116116    taboneactions = ['Add applicants container', 'Remove selected','Cancel']
    117117    subunits = 'Applicants Containers'
    118    
     118
    119119    def update(self):
    120120        tabs.need()
     
    139139        if len(deleted):
    140140            self.flash('Successfully removed: %s' % ', '.join(deleted))
    141         self.redirect(self.url(self.context, '@@manage')+'#tab-1')   
    142         return       
     141        self.redirect(self.url(self.context, '@@manage')+'#tab-1')
     142        return
    143143
    144144    @grok.action('Add applicants container', validator=NullValidator)
    145145    def addApplicantsContainer(self, **data):
    146146        self.redirect(self.url(self.context, '@@add'))
    147         return   
    148        
     147        return
     148
    149149    @grok.action('Cancel', validator=NullValidator)
    150150    def cancel(self, **data):
    151151        self.redirect(self.url(self.context))
    152         return   
    153    
     152        return
     153
    154154class ApplicantsContainerAddFormPage(WAeUPAddFormPage):
    155155    grok.context(IApplicantsRoot)
     
    160160    label = 'Add applicants container'
    161161    pnav = 3
    162    
     162
    163163    form_fields = grok.AutoFields(IApplicantsContainerAdd)
    164164    form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le')
    165165    form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le')
    166     form_fields['description'].custom_widget = ReSTWidget   
    167    
     166    form_fields['description'].custom_widget = ReSTWidget
     167
    168168    @grok.action('Add applicants container')
    169169    def addApplicantsContainer(self, **data):
     
    174174        # Add new applicants container...
    175175        provider = getUtility(IApplicantsContainerProvider,
    176                               name=getattr(data['provider'], 
     176                              name=getattr(data['provider'],
    177177                                   'grokcore.component.directive.name'))
    178178        container = provider.factory()
     
    182182        self.redirect(self.url(self.context, u'@@manage')+'#tab-1')
    183183        return
    184        
     184
    185185    @grok.action('Cancel')
    186186    def cancel(self, **data):
    187         self.redirect(self.url(self.context))       
    188      
     187        self.redirect(self.url(self.context))
     188
    189189    #def getContainerProviders(self):
    190190    #    """Get a list of applicants container providers.
     
    221221    grok.context(IApplicantsRoot)
    222222    title = u'Applicants'
    223    
     223
    224224class ApplicantsContainerBreadcrumb(Breadcrumb):
    225225    """A breadcrumb for applicantscontainers.
     
    230230    """Faculties-tab in primary navigation.
    231231    """
    232    
     232
    233233    grok.context(IWAeUPObject)
    234234    grok.order(3)
     
    293293        return "Manage applicants container: %s" % getattr(
    294294            self.context, '__name__', 'unnamed')
    295    
     295
    296296    @property
    297297    def label(self):
     
    311311        self.flash('Data saved.')
    312312        return
    313        
     313
    314314    @grok.action('Back')
    315315    def cancel(self, **data):
     
    323323
    324324    title = u'Login'
    325    
     325
    326326    @property
    327327    def label(self):
     
    330330    pnav = 3
    331331    prefix = u'APP'
    332    
     332
    333333    def update(self, SUBMIT=None):
    334334        self.ac_series = self.request.form.get('form.ac_series', None)
     
    351351            applicant.access_code = pin
    352352            self.context[pin] = applicant
    353            
     353
    354354        # Assign current principal the owner role on created applicant
    355355        # record
     
    411411        self.redirect(self.url(self.context))
    412412        return
    413    
     413
    414414    def update(self):
    415415        if self.context.locked:
Note: See TracChangeset for help on using the changeset viewer.