Changeset 4730 for waeup/branches/ulif-layout/src
- Timestamp:
- 8 Jan 2010, 02:36:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/browser/viewlets.py
r4723 r4730 8 8 from waeup.browser.pages import (UniversityPage, FacultyContainerPage, 9 9 DatacenterPage, FacultyPage, DepartmentPage, 10 CoursePage )10 CoursePage, CertificatePage) 11 11 from waeup.browser.interfaces import IBreadcrumbContainer 12 12 from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter, … … 152 152 grok.require('waeup.manageUniversity') 153 153 154 class ManageCertificateAction(ManageUniversityAction): 155 """ 'Edit settings' button for certificates. 156 """ 157 grok.context(ICertificate) 158 grok.view(CertificatePage) 159 grok.template('manageaction') 160 grok.require('waeup.manageUniversity') 161 154 162 # 155 163 # Add actions... … … 253 261 grok.context(IDepartment) 254 262 grok.view(DepartmentPage) 263 grok.order(4) 264 grok.template('addaction') 265 grok.require('waeup.manageUniversity') 266 267 addview_name = 'addcourse' 268 addlink_text = 'Add course' 269 270 class AddCertificateCourseAction(AddAction): 271 """Add-course button for certificate index page. 272 """ 273 grok.context(ICertificate) 274 grok.view(CertificatePage) 255 275 grok.order(4) 256 276 grok.template('addaction')
Note: See TracChangeset for help on using the changeset viewer.