Changeset 2cb5838 in rattail


Ignore:
Timestamp:
06/27/18 20:02:17 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
159dd9c
Parents:
ff9b259
Message:

Allow refresh for 'completed' batch, by default

handlers are welcome to override this, but it seems the most pragmatic default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/batch/handlers.py

    rff9b259 r2cb5838  
    289289        handler supports a "refresh" operation for the batch, given its current
    290290        condition.  The default assumes a refresh is allowed unless the batch
    291         is complete or executed.
     291        is executed.
    292292
    293293        Note that this (currently) only affects the enabled/disabled state of
     
    295295        """
    296296        if batch.executed:
    297             return False
    298         if batch.complete:
    299297            return False
    300298        return True
Note: See TracChangeset for help on using the changeset viewer.