Ignore:
Timestamp:
8 Jan 2010, 01:24:59 (15 years ago)
Author:
uli
Message:

Add 'Edit settings' button for courses' index page.

File:
1 edited

Legend:

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

    r4718 r4723  
    77from zope.location.interfaces import ISite
    88from waeup.browser.pages import (UniversityPage, FacultyContainerPage,
    9                                  DatacenterPage, FacultyPage, DepartmentPage)
     9                                 DatacenterPage, FacultyPage, DepartmentPage,
     10                                 CoursePage)
    1011from waeup.browser.interfaces import IBreadcrumbContainer
    1112from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
     
    140141    grok.context(IDepartment)
    141142    grok.view(DepartmentPage)
     143    grok.template('manageaction')
     144    grok.require('waeup.manageUniversity')
     145
     146class ManageCourseAction(ManageUniversityAction):
     147    """ 'Edit settings' button for courses.
     148    """
     149    grok.context(ICourse)
     150    grok.view(CoursePage)
    142151    grok.template('manageaction')
    143152    grok.require('waeup.manageUniversity')
Note: See TracChangeset for help on using the changeset viewer.