Changeset 6424 for main/waeup.sirp
- Timestamp:
- 20 Jun 2011, 15:40:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py
r6423 r6424 177 177 writer.writerow([self.prefix, str(self.num), "%0.2f" % self.cost]) 178 178 179 for value in self.values(): 179 for value in sorted(self.values(), 180 cmp=lambda x, y: cmp( 181 x.batch_serial, y.batch_serial)): 180 182 writer.writerow( 181 183 [str(value.batch_serial), str(value.representation)] … … 203 205 writer.writerow([self.prefix, '%0.2f' % self.cost, str(self.num), 204 206 str(self.entry_num)]) 205 for value in self.values(): 207 for value in sorted( 208 self.values(), 209 cmp = lambda x, y: cmp(x.batch_serial, y.batch_serial) 210 ): 206 211 writer.writerow([ 207 212 self.prefix, value.batch_serial, value.representation,
Note: See TracChangeset for help on using the changeset viewer.