Ignore:
Timestamp:
20 Jun 2011, 22:50:48 (13 years ago)
Author:
uli
Message:

Update access code archiving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/accesscodes.py

    r6432 r6439  
    170170            )
    171171        writer = csv.writer(open(csv_path, 'w'), quoting=csv.QUOTE_ALL)
    172         writer.writerow(['prefix', 'serial', 'ac', 'date'])
     172        writer.writerow(['prefix', 'serial', 'ac', 'used',
     173                         'disabled', 'history'])
    173174        writer.writerow([self.prefix, '%0.2f' % self.cost, str(self.num),
    174175                         str(self.entry_num)])
     
    179180            writer.writerow([
    180181                    self.prefix, value.batch_serial, value.representation,
     182                    value.used and '1' or '0', value.disabled and '1' or '0',
     183                    value.history
    181184                    ])
    182185        return os.path.basename(csv_path)
Note: See TracChangeset for help on using the changeset viewer.