Changeset 1596 for WAeUP_SRP/branches/joachim-event-branch/ScratchCards.py
- Timestamp:
- 19 Mar 2007, 21:45:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/branches/joachim-event-branch/ScratchCards.py
r1395 r1596 37 37 """import PinBatch""" 38 38 name = "PINS" 39 logger = logging.getLogger(' Import.%s' % name)39 logger = logging.getLogger('Students.ScratchCardBatchesFolder.importPinBatch') 40 40 logger.info('Start loading from %s.csv' % name) 41 41 pins_section = self.portal_url.getPortalObject().campus.pins … … 66 66 dict['no_of_pins'] = n - 1 67 67 batch.getContent().edit(mapping=dict) 68 logger.info(' Added %s with %d Pins' % (bid,n-1))68 logger.info('%s with %d PINs added' % (bid,n-1)) 69 69 return self.REQUEST.RESPONSE.redirect("%s" % self.REQUEST.get('URL1')) 70 70 ###) … … 140 140 return unused[-max_pins:] 141 141 return unused 142 142 143 143 security.declareProtected(View,"getUsedPins") 144 144 def getUsedPins(self):
Note: See TracChangeset for help on using the changeset viewer.