Changeset 2766 for WAeUP_SRP/base/Widgets.py
- Timestamp:
- 26 Nov 2007, 19:18:09 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/Widgets.py
r2738 r2766 24 24 #from Products.ExtFile.ExtFile import ExtFile 25 25 import logging,os,re 26 import random 26 27 import operator 27 28 p_home = Globals.package_home(globals()) … … 31 32 32 33 33 class WAeUPPasswordWidget(CPSPasswordWidget): 34 class WAeUPPasswordWidget(CPSPasswordWidget): ###( 34 35 """WAeUP Password Widget""" 35 36 meta_type = 'WAeUP Password Widget' … … 117 118 118 119 widgetRegistry.register(WAeUPPasswordWidget) 119 120 ###) 120 121 121 122 class CPSSelectWidgetForRecord(CPSSelectWidget): ###( … … 1320 1321 1321 1322 while do: 1322 ok = pins.searchAndSetRecord(pin,ref,prefix)1323 ok,record = pins.searchAndSetRecord(pin,ref,prefix) 1323 1324 if ok < -2 or ok > 2: 1324 1325 err = 'Unknown error, please report!' … … 1473 1474 def validate(self, datastructure, **kw): ###( 1474 1475 """Validate datastructure and update datamodel.""" 1475 #import pdb;pdb.set_trace()1476 1476 s_logger = logging.getLogger('Widgets.ScratchcardPinWidget.validate') 1477 1477 widget_id = self.getWidgetId() … … 1519 1519 s_logger.info('%s/%s entered wrong data together with PIN %s' % (member_id,ref,pin_str)) 1520 1520 while do: 1521 ok = pins.searchAndSetRecord(pin,ref,prefix)1521 ok,pin_record = pins.searchAndSetRecord(pin,ref,prefix) 1522 1522 if ok < -2 or ok > 2: 1523 1523 err = 'Unknown error, please report!' … … 1556 1556 d['reg_no'] = applicant.reg_no 1557 1557 d['pin'] = pin_str 1558 d['serial'] = "%c%05d" % (pin_record.prefix_batch[-1], 1559 pin_record.serial) 1558 1560 #d['screening_type'] = screening_type 1559 1561 #d['status'] = 'entered'
Note: See TracChangeset for help on using the changeset viewer.