Changeset 2001 for WAeUP_SRP


Ignore:
Timestamp:
9 Jul 2007, 16:46:26 (17 years ago)
Author:
Henrik Bettermann
Message:

don't show wrong batch number

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r1986 r2001  
    10451045        pins = self.portal_pins
    10461046        pin = "%(prefix)s%(b)s%(n)s" % vars()
    1047         pin_str = "%(prefix)s-%(b)-s%(n)s" % vars()
     1047        pin_str = "%(prefix)s-%(b)s-%(n)s" % vars()
    10481048        do = 1
    10491049        s_id = str(self.portal_membership.getAuthenticatedMember())
     
    11611161        v = datamodel[self.fields[0]]
    11621162        if v and type(v) is StringType:
     1163            return self.fields[0]
    11631164            try:
    11641165                p,b,n = v.split('-')
    11651166                v = ScratchCardPin(p,b,n)
    11661167            except ValueError:
    1167                 v = ScratchCardPin(self.prefix,'1',v)
     1168                v = ScratchCardPin(self.prefix,'X',v)
    11681169                pass
    11691170        if v:
Note: See TracChangeset for help on using the changeset viewer.