Index: /waeup/branches/ulif-rewrite/src/waeup/viewlets.py
===================================================================
--- /waeup/branches/ulif-rewrite/src/waeup/viewlets.py	(revision 4560)
+++ /waeup/branches/ulif-rewrite/src/waeup/viewlets.py	(revision 4561)
@@ -8,5 +8,6 @@
 from waeup.interfaces import (IUniversity, IWAeUPObject, IWAeUPXMLExporter,
                               IWAeUPXMLImporter, IFacultyContainer, IFaculty,
-                              IDepartment, ICourse, ICertificate)
+                              IDepartment, ICourse, ICertificate,
+                              ICertificateCourse,)
 from waeup.utils.helpers import getInnerHTMLPart
 
@@ -39,4 +40,13 @@
 
 class AddCertificate(grok.View):
+    """Admin add form wrapper for waeup objects.
+    
+    We need different named add views for departments as there are
+    different things to add.
+    """
+    grok.context(IWAeUPObject)
+    grok.template('master')
+
+class AddCertificateCourse(grok.View):
     """Admin add form wrapper for waeup objects.
     
@@ -238,4 +248,11 @@
     addlink_text = 'Add certificate'
 
+class AddCertificateCourseAction(AddAction):
+    grok.context(ICertificate)
+    grok.template('addaction')
+
+    addview_name = 'addcertificatecourse'
+    addlink_text = 'Add course'
+
     
 class ManageUniversityAction(grok.Viewlet):
@@ -261,4 +278,7 @@
 class ManageCertificateAction(ManageUniversityAction):
     grok.context(ICertificate)
+
+class ManageCertificateCourseAction(ManageUniversityAction):
+    grok.context(ICertificateCourse)
 
 class ExportXMLAction(grok.Viewlet):
@@ -330,8 +350,4 @@
                                     name=self.formview_name)
         self.form.update_form()
-        if self.request.method == 'POST':
-            #app = get_application(self.context)
-            #self.__parent__.redirect(self.__parent__.url(obj=app))
-            pass
 
     def render(self):
