Index: /main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py	(revision 9742)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py	(revision 9743)
@@ -2000,52 +2000,7 @@
         hitlist = []
         for ticket in coursetickets:
+            # XXX: If students have registered the same courses twice
+            # they will be listed twice.
             hitlist.append(StudentQueryResultItem(ticket.student, view=self))
-        return hitlist
-
-class ShowStudentsInDepartmentPage(FilterStudentsInDepartmentPage):
-    """Page that lists all students in the department.
-    """
-    grok.context(IDepartment)
-    grok.require('waeup.showStudents')
-    grok.name('showdepstudents')
-    grok.template('showstudentspage')
-    pnav = 1
-    label = _('Students')
-
-    @property
-    def getStudents(self):
-        hitlist = searchstudents(query=self.context.code,
-            searchtype='depcode', view=self)
-        return hitlist
-
-    def update(self, *args, **kw):
-        datatable.need()
-        return
-
-class ShowStudentsInCertificatePage(ShowStudentsInDepartmentPage):
-    """Page that lists all students studying a certificate.
-    """
-    grok.context(ICertificate)
-    grok.name('showcertstudents')
-
-    @property
-    def getStudents(self):
-        hitlist = searchstudents(query=self.context.code,
-            searchtype='certcode', view=self)
-        return hitlist
-
-class ShowStudentsInCoursePage(ShowStudentsInDepartmentPage):
-    """Page that lists all students studying a certificate.
-    """
-    grok.context(ICourse)
-    grok.name('showcoursestudents')
-
-    @property
-    def getStudents(self):
-        hitlist = []
-        cat = queryUtility(ICatalog, name='coursetickets_catalog')
-        results = cat.searchResults(code=(self.context.code, self.context.code))
-        for result in results:
-            hitlist.append(StudentQueryResultItem(result.student, view=self))
         return hitlist
 
