Ignore:
Timestamp:
13 Jan 2012, 08:15:24 (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/students/browser.py

    r7462 r7466  
    168168    grok.template('containerpage')
    169169    label = 'Student Section'
    170     title = 'Students'
    171170    pnav = 4
    172171
     
    198197    grok.require('waeup.Anonymous')
    199198    grok.template('setpassword')
    200     title = ''
    201199    label = 'Set password for first-time login'
    202200    ac_prefix = 'PWD'
     
    266264    grok.template('containermanagepage')
    267265    pnav = 4
    268     title = 'Manage student section'
    269 
    270     @property
    271     def label(self):
    272         return self.title
     266    label = 'Manage student section'
    273267
    274268    def update(self, *args, **kw):
     
    326320    form_fields = grok.AutoFields(IStudent).select(
    327321        'firstname', 'middlename', 'lastname')
    328     title = 'Students'
    329322    label = 'Add student'
    330323    pnav = 4
     
    348341    form_fields = grok.AutoFields(IStudentBase).omit('password')
    349342    pnav = 4
    350     title = 'Base Data'
    351343
    352344    @property
     
    374366    grok.require('waeup.viewStudent')
    375367    pnav = 4
    376     title = 'Contact'
    377368    form_fields = grok.AutoFields(IContactForm).select('subject', 'body')
    378369
     
    423414    grok.template('basemanagepage')
    424415    label = 'Manage base data'
    425     title = 'Base Data'
    426416    pnav = 4
    427417
     
    483473    form_fields = grok.AutoFields(IStudentClearance).omit('clearance_locked')
    484474    form_fields['date_of_birth'].custom_widget = FriendlyDateDisplayWidget('le')
    485     title = 'Clearance Data'
    486475    pnav = 4
    487476
     
    569558    form_fields = grok.AutoFields(IStudentClearance)
    570559    label = 'Manage clearance data'
    571     title = 'Clearance Data'
    572560    pnav = 4
    573561    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
     
    638626    form_fields = grok.AutoFields(IStudentPersonal)
    639627    form_fields['perm_address'].custom_widget = BytesDisplayWidget
    640     title = 'Personal Data'
    641628    pnav = 4
    642629
     
    661648    form_fields = grok.AutoFields(IStudentPersonal)
    662649    label = 'Manage personal data'
    663     title = 'Personal Data'
    664650    pnav = 4
    665651
     
    677663    form_fields = grok.AutoFields(IStudentStudyCourse)
    678664    grok.template('studycoursepage')
    679     title = 'Study Course'
    680665    pnav = 4
    681666
     
    720705    grok.template('studycoursemanagepage')
    721706    form_fields = grok.AutoFields(IStudentStudyCourse)
    722     title = 'Study Course'
    723707    label = 'Manage study course'
    724708    pnav = 4
     
    798782        datatable.need()
    799783        return
    800 
    801     @property
    802     def title(self):
    803         return 'Study Level %s' % self.context.level_title
    804784
    805785    @property
     
    917897
    918898    @property
    919     def title(self):
    920         return 'Study Level %s' % self.context.level_title
    921 
    922     @property
    923899    def label(self):
    924900        return 'Manage study level %s' % self.context.level_title
     
    1020996        'grade', 'score', 'automatic')
    1021997    pnav = 4
    1022 
    1023     @property
    1024     def title(self):
    1025         return 'Study Level %s' % self.context.level_title
    1026998
    1027999    @action('Add course ticket')
     
    10641036
    10651037    @property
    1066     def title(self):
    1067         return 'Course Ticket %s' % self.context.code
    1068 
    1069     @property
    10701038    def label(self):
    10711039        return '%s: Course Ticket %s' % (
     
    10891057    grok.template('courseticketmanagepage')
    10901058    pnav = 4
    1091 
    1092     @property
    1093     def title(self):
    1094         return 'Course Ticket %s' % self.context.code
    10951059
    10961060    @property
     
    11121076#    form_fields = grok.AutoFields(IStudentPaymentsContainer)
    11131077#    grok.template('paymentspage')
    1114 #    title = 'Payments'
    11151078#    pnav = 4
    11161079
     
    11331096    form_fields = grok.AutoFields(IStudentPaymentsContainer)
    11341097    grok.template('paymentsmanagepage')
    1135     title = 'Payments'
    11361098    pnav = 4
    11371099
     
    12001162        'p_category')
    12011163    label = 'Add online payment'
    1202     title = 'Payments'
    12031164    pnav = 4
    12041165   
     
    12591220    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    12601221    pnav = 4
    1261 
    1262     @property
    1263     def title(self):
    1264         return 'Online Payment Ticket %s' % self.context.p_id
    12651222
    12661223    @property
     
    13841341#    form_fields = grok.AutoFields(IStudentAccommodation)
    13851342#    #grok.template('accommodationpage')
    1386 #    title = 'Accommodation'
    13871343#    pnav = 4
    13881344
     
    14001356    form_fields = grok.AutoFields(IStudentAccommodation)
    14011357    grok.template('accommodationmanagepage')
    1402     title = 'Accommodation'
    14031358    pnav = 4
    14041359    officers_only_actions = ['Remove selected']
     
    14651420    ac_prefix = 'HOS'
    14661421    label = 'Add bed ticket'
    1467     title = 'Add bed ticket'
    14681422    pnav = 4
    14691423    buttonname = 'Create bed ticket'
     
    15651519    def label(self):
    15661520        return 'Bed Ticket for Session %s' % self.context.getSessionString()
    1567 
    1568     @property
    1569     def title(self):
    1570         return 'Bed Ticket %s' % self.context.getSessionString()
    15711521
    15721522class BedTicketSlipActionButton(ManageActionButton):
     
    16851635    grok.require('waeup.viewStudent')
    16861636    grok.template('studenthistory')
    1687     title = 'History'
    16881637    pnav = 4
    16891638
     
    17351684        'email', 'phone')
    17361685    label = 'Edit base data'
    1737     title = 'Base Data'
    17381686    pnav = 4
    17391687
     
    17511699    grok.template('change_password')
    17521700    label = 'Change password'
    1753     title = 'Base Data'
    17541701    pnav = 4
    17551702
     
    17781725    grok.template('filesuploadpage')
    17791726    label = 'Upload portrait'
    1780     title = 'Base Data'
    17811727    pnav = 4
    17821728
     
    18081754    grok.require('waeup.handleStudent')
    18091755    grok.template('enterpin')
    1810     title = 'Start clearance'
    18111756    label = 'Start clearance'
    18121757    ac_prefix = 'CLR'
     
    18921837        IStudentClearanceEdit).omit('clearance_locked')
    18931838    label = 'Edit clearance data'
    1894     title = 'Clearance Data'
    18951839    form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
    18961840
     
    19301874    grok.require('waeup.handleStudent')
    19311875    grok.template('enterpin')
    1932     title = 'Request clearance'
    19331876    label = 'Request clearance'
    19341877    notice = 'Enter the CLR access code used for starting clearance.'
     
    19771920    grok.require('waeup.handleStudent')
    19781921    grok.template('enterpin')
    1979     title = 'Start course registration'
    19801922    label = 'Start course registration'
    19811923    ac_prefix = 'SFE'
     
    20491991    grok.template('studyleveladdpage')
    20501992    form_fields = grok.AutoFields(IStudentStudyCourse)
    2051     title = 'Study Course'
    20521993    pnav = 4
    20531994
     
    21142055        warning.need()
    21152056        return
    2116 
    2117     @property
    2118     def title(self):
    2119         return 'Study Level %s' % self.context.level_title
    21202057
    21212058    @property
     
    22032140    grok.require('waeup.Anonymous')
    22042141    grok.template('changepw')
    2205     title = 'Change Password Request'
    22062142    label = 'Change my password'
    22072143    form_fields = grok.AutoFields(IStudentChangePassword)
Note: See TracChangeset for help on using the changeset viewer.