Changeset 4561 for waeup/branches/ulif-rewrite
- Timestamp:
- 16 Dec 2009, 10:44:54 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/viewlets.py
r4504 r4561 8 8 from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter, 9 9 IWAeUPXMLImporter, IFacultyContainer, IFaculty, 10 IDepartment, ICourse, ICertificate) 10 IDepartment, ICourse, ICertificate, 11 ICertificateCourse,) 11 12 from waeup.utils.helpers import getInnerHTMLPart 12 13 … … 39 40 40 41 class AddCertificate(grok.View): 42 """Admin add form wrapper for waeup objects. 43 44 We need different named add views for departments as there are 45 different things to add. 46 """ 47 grok.context(IWAeUPObject) 48 grok.template('master') 49 50 class AddCertificateCourse(grok.View): 41 51 """Admin add form wrapper for waeup objects. 42 52 … … 238 248 addlink_text = 'Add certificate' 239 249 250 class AddCertificateCourseAction(AddAction): 251 grok.context(ICertificate) 252 grok.template('addaction') 253 254 addview_name = 'addcertificatecourse' 255 addlink_text = 'Add course' 256 240 257 241 258 class ManageUniversityAction(grok.Viewlet): … … 261 278 class ManageCertificateAction(ManageUniversityAction): 262 279 grok.context(ICertificate) 280 281 class ManageCertificateCourseAction(ManageUniversityAction): 282 grok.context(ICertificateCourse) 263 283 264 284 class ExportXMLAction(grok.Viewlet): … … 330 350 name=self.formview_name) 331 351 self.form.update_form() 332 if self.request.method == 'POST':333 #app = get_application(self.context)334 #self.__parent__.redirect(self.__parent__.url(obj=app))335 pass336 352 337 353 def render(self):
Note: See TracChangeset for help on using the changeset viewer.