Ignore:
Timestamp:
8 Jan 2010, 03:07:48 (15 years ago)
Author:
uli
Message:

Add edit-button for certificate course pages.

File:
1 edited

Legend:

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

    r4731 r4734  
    88from waeup.browser.pages import (UniversityPage, FacultyContainerPage,
    99                                 DatacenterPage, FacultyPage, DepartmentPage,
    10                                  CoursePage, CertificatePage)
     10                                 CoursePage, CertificatePage,
     11                                 CertificateCoursePage)
    1112from waeup.browser.interfaces import IBreadcrumbContainer
    1213from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
     
    157158    grok.context(ICertificate)
    158159    grok.view(CertificatePage)
     160    grok.template('manageaction')
     161    grok.require('waeup.manageUniversity')
     162
     163class ManageCertificateCourseAction(ManageUniversityAction):
     164    """ 'Edit settings' button for certificatecourses.
     165    """
     166    grok.context(ICertificateCourse)
     167    grok.view(CertificateCoursePage)
    159168    grok.template('manageaction')
    160169    grok.require('waeup.manageUniversity')
Note: See TracChangeset for help on using the changeset viewer.