Changeset 2001 for WAeUP_SRP/trunk
- Timestamp:
- 9 Jul 2007, 16:46:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r1986 r2001 1045 1045 pins = self.portal_pins 1046 1046 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() 1048 1048 do = 1 1049 1049 s_id = str(self.portal_membership.getAuthenticatedMember()) … … 1161 1161 v = datamodel[self.fields[0]] 1162 1162 if v and type(v) is StringType: 1163 return self.fields[0] 1163 1164 try: 1164 1165 p,b,n = v.split('-') 1165 1166 v = ScratchCardPin(p,b,n) 1166 1167 except ValueError: 1167 v = ScratchCardPin(self.prefix,' 1',v)1168 v = ScratchCardPin(self.prefix,'X',v) 1168 1169 pass 1169 1170 if v:
Note: See TracChangeset for help on using the changeset viewer.