Changeset 3389 for WAeUP_SRP/base/skins/waeup_pins/search_pins.py
- Timestamp:
- 28 Mar 2008, 08:15:24 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_pins/search_pins.py
r3081 r3389 108 108 if context.portal_type == "ScratchCardBatch": 109 109 info['batch_doc'] = context.getContent() 110 #info['used'] = set_used_pins(info['batch_doc'].getUsedPins())111 info['used'] = []110 info['used'] = set_used_pins(info['batch_doc'].getUsedPins()) 111 #info['used'] = [] 112 112 info['unused'] = info['batch_doc'].getUnusedPins() 113 113 info['nr_used'] = info['batch_doc'].getNumberOfUsedPins() … … 146 146 items = items_1 + items_2 147 147 elif what == 'pin': 148 term = term.replace('-','').strip().upper() 148 149 if context.portal_type == "ScratchCardBatch" and term == "HOS1": 149 150 items = check_hostel_pins(term) 150 151 else: 151 items = pincat(pin = term .upper())152 items = pincat(pin = term) 152 153 elif what == 'serial': 153 154 try:
Note: See TracChangeset for help on using the changeset viewer.