Changeset 996
- Timestamp:
- 5 Dec 2006, 19:28:18 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Widgets.py
r995 r996 403 403 if not batch_no and not number: 404 404 s = prefix 405 if len(s) > 5:405 if len(s) > 3: 406 406 prefix,batch_no,number = s[:3],s[3:-10],s[-10:] 407 407 else: 408 prefix,batch_no,number = '','',s408 prefix,batch_no,number = s,'','' 409 409 self.p = prefix 410 410 self.b = batch_no … … 458 458 def validate(self, datastructure, **kw): 459 459 """Validate datastructure and update datamodel.""" 460 #import pdb;pdb.set_trace()461 460 s_logger = logging.getLogger('students_pin_usage') 462 461 widget_id = self.getWidgetId() 463 462 v = datastructure[widget_id] 463 #import pdb;pdb.set_trace() 464 464 err = 0 465 465 prefix= self.prefix … … 562 562 v = ScratchCardPin(p,b,n) 563 563 except ValueError: 564 v = ScratchCardPin(v,'','') 564 v = ScratchCardPin(self.prefix,'1',v) 565 pass 565 566 if v: 566 567 prefix= '%s' % v.p
Note: See TracChangeset for help on using the changeset viewer.