Ignore:
Timestamp:
21 Nov 2012, 22:37:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Rework logging of batch processing. Remove redundant text but add name of import file.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/hostels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/batching.py

    r9312 r9706  
    6262        return
    6363
    64     def updateEntry(self, obj, row, site):
     64    def updateEntry(self, obj, row, site, filename):
    6565        """Update obj to the values given in row.
    6666        """
     
    8585        location_field = self.location_fields[0]
    8686        items_changed = ', '.join(changed)
    87         grok.getSite()['hostels'].logger.info('%s - %s - Record updated: %s'
    88             % (self.name, row[location_field], items_changed))
     87        grok.getSite()['hostels'].logger.info(
     88            '%s - %s - %s - updated: %s'
     89            % (self.name, filename, row[location_field], items_changed))
    8990        return
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r9534 r9706  
    504504        logcontent = open(self.logfile).read()
    505505        self.assertTrue(
    506             "Hostel Processor - block-a-upper-hostel - "
    507             "Record updated: beds_for_pre=['G'], floors_per_block=1, "
     506            "Hostel Processor - sample_hostel_data - block-a-upper-hostel - "
     507            "updated: "
     508            "beds_for_pre=['G'], floors_per_block=1, "
    508509            "beds_for_final=['A', 'B'], rooms_per_floor=32, "
    509510            "blocks_for_male=[], hostel_id=block-a-upper-hostel, "
Note: See TracChangeset for help on using the changeset viewer.