Ignore:
Timestamp:
3 Apr 2010, 14:07:16 (15 years ago)
Author:
uli
Message:
  • Remove view-counter for invalidated ACs. We will not use catalogs here.
  • Make accesscode batch views support archives.
File:
1 edited

Legend:

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

    r5113 r5117  
    2626    pnav = 0
    2727
    28     def invalidated(self, batch):
    29         return invalidated_num(batch.prefix, batch.num)
    30 
     28    def update(self, batches=None, archive=None, delete=None):
     29        if batches is None:
     30            return
     31        if archive is None and delete is None:
     32            return
     33        if isinstance(batches, basestring):
     34            batches = [batches]
     35        for name in batches:
     36            batch = self.context[name]
     37            csv_file = batch.archive()
     38            self.flash('Archived %s (%s)' % (name, csv_file))
     39            if delete is None:
     40                continue
     41            del self.context[name]
     42            self.flash('Deleted batch %s' % name)
    3143
    3244class AddBatchPage(WAeUPAddFormPage):
Note: See TracChangeset for help on using the changeset viewer.