Ignore:
Timestamp:
5 Jan 2010, 11:31:16 (15 years ago)
Author:
uli
Message:

Add 'edit settings' button for datacenter index page.

File:
1 edited

Legend:

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

    r4656 r4680  
    66from zope.component import getMultiAdapter
    77from zope.location.interfaces import ISite
    8 from waeup.browser.pages import UniversityPage, FacultyContainerPage
     8from waeup.browser.pages import (UniversityPage, FacultyContainerPage,
     9                                 DatacenterPage)
    910from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
    1011                              IWAeUPXMLImporter, IFacultyContainer, IFaculty,
    1112                              IDepartment, ICourse, ICertificate,
    12                               ICertificateCourse,)
     13                              ICertificateCourse, IDataCenter)
    1314from waeup.utils.helpers import getInnerHTMLPart
    1415from waeup.viewlets import LeftSidebar, ActionBar
     
    103104    grok.template('manageaction')
    104105
     106class ManageDataCenterAction(ManageUniversityAction):
     107    grok.context(IDataCenter)
     108    grok.view(DatacenterPage)
     109    grok.template('manageaction')
     110    grok.require('waeup.manageUniversity')
    105111
    106112#
Note: See TracChangeset for help on using the changeset viewer.