Ignore:
Timestamp:
7 Jan 2010, 22:31:34 (15 years ago)
Author:
uli
Message:

Add 'edit settings' button for faculty index pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/viewlets.py

    r4700 r4708  
    77from zope.location.interfaces import ISite
    88from waeup.browser.pages import (UniversityPage, FacultyContainerPage,
    9                                  DatacenterPage)
     9                                 DatacenterPage, FacultyPage)
    1010from waeup.browser.interfaces import IBreadcrumbContainer
    1111from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
     
    124124    grok.context(IDataCenter)
    125125    grok.view(DatacenterPage)
     126    grok.template('manageaction')
     127    grok.require('waeup.manageUniversity')
     128
     129class ManageFacultyAction(ManageUniversityAction):
     130    """ 'Edit settings' button for faculties.
     131    """
     132    grok.context(IFaculty)
     133    grok.view(FacultyPage)
    126134    grok.template('manageaction')
    127135    grok.require('waeup.manageUniversity')
Note: See TracChangeset for help on using the changeset viewer.