Ignore:
Timestamp:
28 Mar 2008, 08:15:24 (17 years ago)
Author:
joachim
Message:

forgot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_pins/search_pins.py

    r3081 r3389  
    108108if context.portal_type == "ScratchCardBatch":
    109109    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'] = []
    112112    info['unused'] = info['batch_doc'].getUnusedPins()
    113113    info['nr_used'] = info['batch_doc'].getNumberOfUsedPins()
     
    146146        items = items_1 + items_2
    147147    elif what == 'pin':
     148        term = term.replace('-','').strip().upper()
    148149        if context.portal_type == "ScratchCardBatch" and term == "HOS1":
    149150            items = check_hostel_pins(term)
    150151        else:
    151             items = pincat(pin = term.upper())
     152            items = pincat(pin = term)
    152153    elif what == 'serial':
    153154        try:
Note: See TracChangeset for help on using the changeset viewer.