Changeset 7243 for main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
- Timestamp:
- 1 Dec 2011, 10:11:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
r7231 r7243 30 30 from waeup.sirp.interfaces import (IWAeUPObject, IWAeUPXMLExporter, 31 31 IWAeUPXMLImporter, IDataCenter, IUserAccount) 32 from waeup.sirp.browser.layout import WAeUPPage 32 from waeup.sirp.browser.layout import WAeUPPage, default_primary_nav_template 33 33 from waeup.sirp.utils.helpers import get_user_account 34 34 … … 571 571 grok.order(1) 572 572 grok.require('waeup.Public') 573 template = default_primary_nav_template 573 574 574 575 pnav = 0 # This is a kind of id of a tab. If some page provides … … 600 601 grok.order(1) 601 602 grok.require('waeup.Public') 602 grok.template('primarynavtab')603 603 604 604 pnav = 0 … … 610 610 grok.order(2) 611 611 grok.require('waeup.viewAcademics') 612 grok.template('primarynavtab')613 612 614 613 pnav = 1 … … 628 627 grok.order(6) 629 628 grok.require('waeup.Anonymous') 630 grok.template('primarynavtab')631 629 tab_title = u'Enquiries' 632 630 pnav = 2 633 631 632 # Also zope.manager has role Anonymous. 633 # To avoid displaying this tab, we have to check the principal id too. 634 634 @property 635 635 def link_target(self): 636 return self.view.application_url('enquiries') 636 if self.request.principal.id == 'zope.anybody': 637 return self.view.application_url('enquiries') 638 return 637 639 638 640 #
Note: See TracChangeset for help on using the changeset viewer.