Changeset 2907 for WAeUP_SRP/base/WAeUPTables.py
- Timestamp:
- 10 Dec 2007, 14:18:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2904 r2907 1470 1470 student_id = rpl[-4] 1471 1471 data['student_id'] = student_id 1472 modified = False 1472 1473 try: 1473 1474 self.modifyRecord(**data) 1475 modified = True 1474 1476 except KeyError: 1475 self.addRecord(**data)1476 except:1477 1477 logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__) 1478 logger.info("could not add or modify entry for %(order_id)s" % data) 1479 ###) 1478 logger.info("could not modify entry for %(student_id)s with %(order_id)s" % data) 1479 if not modified: 1480 try: 1481 self.addRecord(**data) 1482 except: 1483 logger = logging.getLogger('WAeUPTables.PaymentsCatalog.%s' % self.__name__) 1484 logger.info("could not add or modify entry for %(student_id)s with %(order_id)s" % data) 1485 ###) 1480 1486 1481 1487
Note: See TracChangeset for help on using the changeset viewer.