Changeset 3417
- Timestamp:
- 3 Apr 2008, 19:22:40 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/ScratchCards.py
r3415 r3417 36 36 def importPinBatch(self): 37 37 """import PinBatch""" 38 name = "P INS"38 name = "PinsToImport" 39 39 logger = logging.getLogger('Students.ScratchCardBatchesFolder.importPinBatch') 40 40 logger.info('Start loading from %s.csv' % name) … … 132 132 "restore Pins from file named pins_to_restore.csv" 133 133 pins = self.portal_pins 134 filename = "%s/ export/pins_to_restore.csv" % (i_home)135 logger = logging.getLogger('ScratchCards.restore ')134 filename = "%s/import/PinsToRestore.csv" % (i_home) 135 logger = logging.getLogger('ScratchCards.restorePins') 136 136 if not os.path.exists(filename): 137 137 logger.info('no file %s' % filename) … … 152 152 d['serial'] = record['Serial'] 153 153 d['cost'] = record['Cost'] 154 d['student'] = '' 154 155 d['prefix_batch'] = "".join(record['Pin'].split('-')[:2]) 155 156 cards += d, … … 164 165 url = self.REQUEST.get('URL1') 165 166 return self.REQUEST.RESPONSE.redirect(url) 166 167 167 168 security.declareProtected(ModifyPortalContent,"archiveBatch") ###( 168 169 def archiveBatch(self,delete=False):
Note: See TracChangeset for help on using the changeset viewer.