Ignore:
Timestamp:
13 Jan 2012, 09:00:08 (13 years ago)
Author:
Henrik Bettermann
Message:

Page titles are deprecated. We only have labels.

File:
1 edited

Legend:

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

    r7459 r7467  
    6060    grok.name('index')
    6161    grok.require('waeup.Public')
    62     title = 'Applicants'
    6362    label = 'Application Section'
    6463    pnav = 3
     
    7372    grok.name('manage')
    7473    grok.template('applicantsrootmanagepage')
    75     title = 'Applicants'
    7674    label = 'Manage application section'
    7775    pnav = 3
     
    144142    grok.name('add')
    145143    grok.template('applicantscontaineraddpage')
    146     title = 'Applicants'
    147144    label = 'Add applicants container'
    148145    pnav = 3
     
    229226
    230227    @property
    231     def title(self):
     228    def label(self):
    232229        return "Applicants Container: %s" % self.context.title
    233 
    234     @property
    235     def label(self):
    236         return self.context.title
    237230
    238231class ApplicantsContainerManageFormPage(SIRPEditFormPage):
     
    251244
    252245    @property
    253     def title(self):
    254         return "Applicants Container: %s" % self.context.title
    255 
    256     @property
    257246    def label(self):
    258247        return 'Manage applicants container'
     
    342331    pnav = 3
    343332
    344     @property
    345     def title(self):
    346         return "Applicants Container: %s" % self.context.title
    347 
    348333    @action('Create application record')
    349334    def addApplicant(self, **data):
     
    381366            return 'set'
    382367        return 'unset'
    383 
    384     @property
    385     def title(self):
    386         return 'Application Record %s' % self.context.application_number
    387368
    388369    @property
     
    486467
    487468    @property
    488     def title(self):
    489         return 'Online Payment Ticket %s' % self.context.p_id
    490 
    491     @property
    492469    def label(self):
    493470        return '%s: Online Payment Ticket %s' % (
     
    650627                upload, self.context, self)
    651628        return
    652 
    653     @property
    654     def title(self):
    655         return 'Application Record %s' % self.context.application_number
    656629
    657630    @property
     
    767740    grok.template('applicanteditpage')
    768741    manage_applications = False
    769     title = u'Your Application Form'
    770742
    771743    @property
     
    879851        'firstname', 'middlename', 'lastname', 'email', 'phone')
    880852    form_fields['phone'].custom_widget = PhoneWidget
    881 
    882     @property
    883     def title(self):
    884         return "Applicants Container: %s" % self.context.title
    885853
    886854    @property
     
    936904    grok.require('waeup.Public')
    937905    grok.template('applicantregemailsent')
    938     title = 'Registration Completed'
    939906    label = 'Your registration was successful'
    940907
Note: See TracChangeset for help on using the changeset viewer.