Changeset 5117 for main/waeup.sirp/trunk
- Timestamp:
- 3 Apr 2010, 14:07:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/accesscodes/browser.py
r5113 r5117 26 26 pnav = 0 27 27 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) 31 43 32 44 class AddBatchPage(WAeUPAddFormPage):
Note: See TracChangeset for help on using the changeset viewer.