Changeset 612


Ignore:
Timestamp:
2 Oct 2006, 17:16:41 (18 years ago)
Author:
Henrik Bettermann
Message:

missing export file extension added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/ScratchCards.py

    r535 r612  
    8181        print '\n'.join(generated)
    8282        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))
    8484    ###)
    8585
     
    9191        pins_cat = self.portal_pins
    9292        doc = self.getContent()
    93         l = [{'pin': p.pin, 
     93        l = [{'pin': p.pin,
    9494              '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),
    9797                                               ) if p.student == '']
    9898        if len (l) <= max_pins:
Note: See TracChangeset for help on using the changeset viewer.