Changeset 3928


Ignore:
Timestamp:
7 Feb 2009, 13:08:05 (16 years ago)
Author:
uli
Message:

Add a link for managing faculties.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/app.py

    r3896 r3928  
    7474    def render(self):
    7575        return u'<div class="portlet"><a href="manage">Settings</a></div>'
     76
     77class ManageFacultiesLink(grok.Viewlet):
     78    grok.viewletmanager(LeftSidebar)
     79    grok.context(IUniversity)
     80    grok.view(Index)
     81    grok.order(6)
     82    # This is so cool! This link is only displayed, when the user is
     83    # allowed to use it!
     84    grok.require('waeup.manageUniversity')
     85   
     86    def render(self):
     87        return u'<div class="portlet"><a href="faculties">Manage faculties</a></div>'
     88   
     89   
Note: See TracChangeset for help on using the changeset viewer.