Changeset 2597


Ignore:
Timestamp:
8 Nov 2007, 17:21:49 (17 years ago)
Author:
Henrik Bettermann
Message:

APP reuse default value is False

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2593 r2597  
    11391139         {'id': 'reference', 'type': 'string', 'mode': 'w',
    11401140         'label': 'Reference Field'},
    1141          {'id': 're_use_pin', 'type': 'boolean', 'mode': 'w',
     1141         {'id': 'reuse_pin', 'type': 'boolean', 'mode': 'w',
    11421142         'label': 'Reuse Application Pin'},
    11431143        )
    11441144    prefix = ''
    11451145    reference = ''
    1146     re_use_pin = True
    1147    
     1146    reuse_pin = False
     1147
    11481148    def prepare(self, datastructure, **kw): ###(
    11491149        """Prepare datastructure from datamodel."""
     
    12151215                datastructure.setError(widget_id, 'PIN neither checked nor used.')
    12161216                s_logger.info('%s/%s entered wrong data together with PIN %s' % (s_id,ref,pin_str))
    1217         if prefix == 'APP' and not self.re_use_pin:
     1217        if prefix == 'APP' and not self.reuse_pin:
    12181218            res =  self.applicants_catalog(reg_no = ref)
    12191219            if res and res[0].pin == pin_str:
    12201220                do = 0
    1221                 err = 'Application PIN cannot be reused'
    1222                 s_logger.info('%s entered same PIN as for Application %s' % (s_id,pin_str))
    1223                
     1221                err = 'Application PINs cannot be reused!'
     1222                s_logger.info('%s entered same PIN as for screening application %s' % (s_id,pin_str))
     1223
    12241224        while do:
    12251225            ok = pins.searchAndSetRecord(pin,ref,prefix)
Note: See TracChangeset for help on using the changeset viewer.