Index: /WAeUP_SRP/trunk/WAeUPTables.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTables.py	(revision 1970)
+++ /WAeUP_SRP/trunk/WAeUPTables.py	(revision 1971)
@@ -556,5 +556,4 @@
             if event_type not in ("sys_add_object","sys_del_object"):
                 return
-            #import pdb;pdb.set_trace()
             course_id = object.getId()
             if course_id.endswith('_co'):
@@ -566,10 +565,14 @@
             student_rec = res[0]
             registered_courses = getattr(student_rec,'registered_courses',[])
+            #import pdb;pdb.set_trace()
             try:
                 x = course_id in registered_courses
             except TypeError:
                 registered_courses = []
-            if event_type == "sys_add_object" and course_id not in registered_courses:
-                registered_courses.append(course_id)
+            if event_type == "sys_add_object":
+                if course_id not in registered_courses:
+                    registered_courses.append(course_id)
+                else:
+                    return
             elif event_type == "sys_del_object":
                 while course_id in registered_courses:
@@ -578,4 +581,5 @@
             data['registered_courses'] = registered_courses
             self.modifyRecord(**data)
+            return
         if pt not in self.affected_types.keys():
             return
@@ -596,4 +600,52 @@
 InitializeClass(StudentsCatalog)
 
+###)
+
+class StatisticsCatalog(StudentsCatalog): ###(
+    security = ClassSecurityInfo()
+    meta_type = 'WAeUP Statistics Catalog'
+    name = "statistics"
+    affected_types = {   ###(
+                      'StudentApplication':
+                          {'id': 'application',
+                           'fields':
+                             ('jamb_reg_no',
+                              'entry_mode',
+                              #'entry_level',
+                              'entry_session',
+                              )
+                              },
+                      'StudentClearance':
+                          {'id': 'clearance',
+                           'fields':
+                             ('matric_no',
+                              )
+                              },
+                         'StudentPersonal':
+                          {'id': 'personal',
+                           'fields':
+                             ('name',
+                              'sex',
+                              'email',
+                              'phone',
+                              )
+                              },
+                         'StudentStudyCourse':
+                          {'id': 'study_course',
+                           'fields':
+                             ('course',
+                              'faculty',
+                              'department',
+                              'level',
+                              'mode',
+                              'session',
+                              'verdict',
+                              )
+                              },
+                         }
+    ###)
+
+
+InitializeClass(StudentsCatalog)
 ###)
 
Index: /WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py	(revision 1970)
+++ /WAeUP_SRP/trunk/skins/waeup_student/add_course_result.py	(revision 1971)
@@ -37,4 +37,5 @@
 args = {}
 err = ''
+d['core_or_elective'] = True
 while True:
     if not course_id:
@@ -64,5 +65,4 @@
 
 cr_id = context.invokeFactory('StudentCourseResult',course_id)
-#set_trace()
 cr = getattr(context,cr_id)
 context.portal_workflow.doActionFor(cr,'open')
