Ignore:
Timestamp:
10 Dec 2007, 14:18:55 (17 years ago)
Author:
joachim
Message:

fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r2904 r2907  
    14701470        student_id = rpl[-4]
    14711471        data['student_id'] = student_id
     1472        modified = False
    14721473        try:
    14731474            self.modifyRecord(**data)
     1475            modified = True
    14741476        except KeyError:
    1475             self.addRecord(**data)
    1476         except:
    14771477            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        ###)
    14801486
    14811487
Note: See TracChangeset for help on using the changeset viewer.