- Timestamp:
- 30 Oct 2012, 17:31:43 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py
r9421 r9467 679 679 # by Excel or Calc 680 680 p_id = p_id.strip('#') 681 if not p_id.startswith('p'):681 if len(p_id.split('-')) != 3 and not p_id.startswith('p'): 682 682 # For data migration from old SRP only 683 683 p_id = 'p' + p_id[7:] + '0' … … 699 699 parent = self.getParent(row, site) 700 700 p_id = row['p_id'].strip('#') 701 if not p_id.startswith('p'):701 if len(p_id.split('-')) != 3 and not p_id.startswith('p'): 702 702 # For data migration from old SRP 703 703 obj.p_id = 'p' + p_id[7:] + '0' … … 736 736 errs.append(('p_id','invalid length')) 737 737 return errs, inv_errs, conv_dict 738 elif len(p_id.split('-')) == 3: 739 # The SRP used either pins as keys ... 740 if len(p_id.split('-')[2]) != 10: 741 errs.append(('p_id','invalid pin')) 742 return errs, inv_errs, conv_dict 738 743 else: 744 # ... or order_ids. 739 745 if not len(p_id) == 19: 740 746 errs.append(('p_id','invalid length'))
Note: See TracChangeset for help on using the changeset viewer.