Changeset 2184 for WAeUP_SRP/trunk


Ignore:
Timestamp:
6 Sep 2007, 20:25:03 (17 years ago)
Author:
Henrik Bettermann
Message:

add only upper-case reg numbers to portal_pins table

see inline comments and also
comment 09/06/07 16:40:52 in ticket #328

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTables.py

    r2113 r2184  
    339339
    340340    def searchAndSetRecord(self, uid, student_id,prefix):
    341         #records = self.searchResults(uid=uid)
     341       
     342        # The following line must be activated after resetting the
     343        # the portal_pins table. This is to avoid duplicate entries
     344        # and disable duplicate payments.
     345       
     346        #student_id = student_id.upper()
     347
    342348        records = self.searchResults(student = student_id)
    343         #import pdb;pdb.set_trace()
    344349        if len(records) > 0 and prefix in ('CLR','APP'):
    345350            for r in records:
  • WAeUP_SRP/trunk/skins/waeup_student/apply_pume.py

    r2182 r2184  
    6464        if object['status'] and 'submitted' in object['status']:
    6565            submitted = True
     66       
    6667        if not (create or slip) and (pin != object['pin'] and not context.isSectionOfficer()):
    6768            logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
    6869            return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())
     70
     71       
     72        # For the next PUME application session it should be reverted to
     73        # (see comment 09/06/07 16:40:52 in ticket #328):
     74
     75        #if not create and (pin != object['pin'] and not context.isSectionOfficer()):
     76            #logger.info('%s/%s entered wrong pin %s' % (member,reg_no,pin))
     77            #return request.RESPONSE.redirect("%s/srp_anonymous_view" % context.portal_url())       
     78
    6979if slip:
    7080    mode = "view_slip"
Note: See TracChangeset for help on using the changeset viewer.