Ignore:
Timestamp:
1 Dec 2011, 10:11:59 (13 years ago)
Author:
Henrik Bettermann
Message:

Use only one primarynavtab.pt pagetemplate and render list item only if link_target is provided.

Provide link_target of EnquiriesTab? and ApplicantsAnonTab? only if principal id is zope.anybody.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/hostels
Files:
1 deleted
1 edited

Legend:

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

    r7195 r7243  
    2828from waeup.sirp.browser.breadcrumbs import Breadcrumb
    2929from waeup.sirp.browser.resources import datepicker, datatable, tabs, toggleall
     30from waeup.sirp.browser.layout import default_primary_nav_template
     31from waeup.sirp.browser.pages import delSubobjects
    3032from waeup.sirp.browser.viewlets import (
    3133    ManageActionButton, PrimaryNavTab, AddActionButton)
     
    3436    FriendlyDateWidget, FriendlyDateDisplayWidget,
    3537    FriendlyDatetimeDisplayWidget)
    36 from waeup.sirp.browser.pages import delSubobjects
    3738from waeup.sirp.authentication import get_principal_role_manager
    3839from waeup.sirp.hostels.container import HostelsContainer
     
    6869    grok.order(5)
    6970    grok.require('waeup.viewHostels')
    70     grok.template('primarynavtab')
    71 
     71    template = default_primary_nav_template
    7272    pnav = 5
    7373    tab_title = u'Hostels'
Note: See TracChangeset for help on using the changeset viewer.