Changeset 612
- Timestamp:
- 2 Oct 2006, 17:16:41 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/ScratchCards.py
r535 r612 81 81 print '\n'.join(generated) 82 82 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 83 open("%s/import/%s-%s-%s " % (i_home,prefix,b_no,current),"w+").write('\n'.join(generated))83 open("%s/import/%s-%s-%s.csv" % (i_home,prefix,b_no,current),"w+").write('\n'.join(generated)) 84 84 ###) 85 85 … … 91 91 pins_cat = self.portal_pins 92 92 doc = self.getContent() 93 l = [{'pin': p.pin, 93 l = [{'pin': p.pin, 94 94 'serial': p.serial, 95 } for p in pins_cat.searchResults(prefix_batch = "%s%d" 96 % (doc.prefix,doc.batch_no), 95 } for p in pins_cat.searchResults(prefix_batch = "%s%d" 96 % (doc.prefix,doc.batch_no), 97 97 ) if p.student == ''] 98 98 if len (l) <= max_pins:
Note: See TracChangeset for help on using the changeset viewer.