Changeset 9706 for main/waeup.kofa/trunk/src/waeup/kofa/hostels
- Timestamp:
- 21 Nov 2012, 22:37:03 (12 years ago)
- 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 62 62 return 63 63 64 def updateEntry(self, obj, row, site ):64 def updateEntry(self, obj, row, site, filename): 65 65 """Update obj to the values given in row. 66 66 """ … … 85 85 location_field = self.location_fields[0] 86 86 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)) 89 90 return -
main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py
r9534 r9706 504 504 logcontent = open(self.logfile).read() 505 505 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, " 508 509 "beds_for_final=['A', 'B'], rooms_per_floor=32, " 509 510 "blocks_for_male=[], hostel_id=block-a-upper-hostel, "
Note: See TracChangeset for help on using the changeset viewer.