Index: /WAeUP_SRP/trunk/WAeUPTables.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTables.py	(revision 2183)
+++ /WAeUP_SRP/trunk/WAeUPTables.py	(revision 2184)
@@ -339,7 +339,12 @@
 
     def searchAndSetRecord(self, uid, student_id,prefix):
-        #records = self.searchResults(uid=uid)
+        
+        # The following line must be activated after resetting the 
+        # the portal_pins table. This is to avoid duplicate entries 
+        # and disable duplicate payments.
+        
+        #student_id = student_id.upper()
+
         records = self.searchResults(student = student_id)
-        #import pdb;pdb.set_trace()
         if len(records) > 0 and prefix in ('CLR','APP'):
             for r in records:
Index: /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2183)
+++ /WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py	(revision 2184)
@@ -64,7 +64,17 @@
         if object['status'] and 'submitted' in object['status']:
             submitted = True
+        
         if not (create or slip) and (pin != object['pin'] and not context.isSectionOfficer()):
             logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
             return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
+
+        
+        # For the next PUME application session it should be reverted to
+        # (see comment 09/06/07 16:40:52 in ticket #328):
+
+        #if not create and (pin != object['pin'] and not context.isSectionOfficer()):
+            #logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
+            #return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())        
+
 if slip:
     mode = "view_slip"
