Index: /WAeUP_SRP/trunk/Widgets.py
===================================================================
--- /WAeUP_SRP/trunk/Widgets.py	(revision 1890)
+++ /WAeUP_SRP/trunk/Widgets.py	(revision 1891)
@@ -127,7 +127,7 @@
             c_ids = [c.id for c in self.portal_catalog({'meta_type': "Course"})]
             if hasattr(self.aq_parent,value):
-                err = 'Course %s already exists' % (value)
+                err = 'Course already exists'
             elif value not in c_ids:
-                err = 'Course %s does not exist' % (value)
+                err = 'Course does not exist'
             if err:
                 datastructure.setError(widget_id, err)
@@ -159,5 +159,5 @@
             res = self.portal_catalog(meta_type= "Course",id = value)
             if len(res) > 0:
-                err = 'Course %s already exists' % (value)
+                err = 'Course already exists'
             if err:
                 datastructure.setError(widget_id, err)
@@ -592,5 +592,5 @@
             pume = jamb_nr_catalog(jamb_reg_no = value)
             if len(pume) < 1:
-                err = 'No student record with registration number %s in %s.' % (value,jamb_nr_catalog.id)
+                err = 'No student record with this registration number.'
             else:
                 datastructure['pume'] = pume[0]
@@ -727,5 +727,5 @@
         value = datastructure[widget_id]
         if not valid or not value:
-            err = 'Invalid string %s' % value
+            err = 'Invalid string'
             logger.info('Invalid matric_no string %s' % value)
         else:
@@ -736,5 +736,5 @@
                 if len(res) < 1:
                     logger.info('matric_no %s not found' % value)
-                    err = 'No student with matriculation number %s in %s' % (value, returning.id)
+                    err = 'No student with this matriculation number.' 
                     break
                 datastructure['student'] = res[0]
@@ -742,5 +742,5 @@
                     res = results(matric_no = value)
                     if len(res) < 1:
-                        err = 'No results for matriculation number %s' % (value)
+                        err = 'No results for this matriculation number'
                         continue
                     datastructure['results'] = res
@@ -771,5 +771,5 @@
         value = datastructure[widget_id]
         if not valid or not value:
-            err = 'Invalid Id string %s' % value
+            err = 'Invalid Id string'
             logger.info('Invalid id string %s' % value)
             datastructure['student'] = None
@@ -779,5 +779,5 @@
             if not res:
                 logger.info('Student id %s not found' % value)
-                err = 'No student with Id %s' % (value)
+                err = 'No student with this Id'
                 datastructure['student'] = None
             else:
@@ -916,5 +916,5 @@
         while 1:
             if not s and g:
-                err = "No subject grade for subject %s " % s
+                err = "No subject grade for subject"
                 break
             i = 0
@@ -1057,5 +1057,5 @@
         elif len(n) != 10:
             do = 0
-            err = 'Invalid PIN length %d' % len(n)
+            err = 'Invalid PIN length'
             s_logger.info('%s entered invalid PIN with length %d' % (s_id,len(n)))
         elif self.reference == "":
@@ -1114,5 +1114,5 @@
                             s_logger.info('%s/%s (non-member) repeatedly checked admission with PIN %s' % (s_id,ref,pin_str))
                     else:
-                        err = "Unknown error" % s_id
+                        err = "Unknown error"
                         s_logger.info('%s/%s repeatedly activated service with PIN %s' % (s_id,ref,pin_str))
                         break
