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/hostels/browser.py

    r7459 r7467  
    100100    grok.template('containerpage')
    101101    label = 'Accommodation Section'
    102     title = 'Hostels'
    103102    pnav = 5
    104103
     
    118117    grok.template('containermanagepage')
    119118    pnav = 5
    120     title = 'Hostels'
    121119    label = 'Manage accommodation section'
    122120
     
    154152    #grok.template('hosteladdpage')
    155153    form_fields = grok.AutoFields(IHostel)
    156     title = 'Hostels'
    157154    label = 'Add hostel'
    158155    pnav = 5
     
    187184        return self.context.hostel_name
    188185
    189     @property
    190     def title(self):
    191         return self.context.hostel_name
    192 
    193186class HostelManageActionButton(ManageActionButton):
    194187    grok.order(1)
     
    214207        'Release selected beds']
    215208    not_occupied = NOT_OCCUPIED
    216 
    217     @property
    218     def title(self):
    219         return self.context.hostel_name
    220209
    221210    @property
     
    310299    pnav = 5
    311300
    312     @property
    313     def title(self):
    314         co = self.context.getBedCoordinates()
    315         return '%s, Block %s, Room %s, Bed %s' % (
    316             self.context.__parent__.hostel_name, co[1], co[2], co[3])
    317 
    318301    @action('Save')
    319302    def save(self, **data):
Note: See TracChangeset for help on using the changeset viewer.