Allow ticket output methods to opt-out from ZIP generation

This commit is contained in:
Raphael Michel
2017-07-14 17:32:16 +02:00
parent 7d9e642f24
commit 42287b92f1
4 changed files with 19 additions and 5 deletions

View File

@@ -32,6 +32,14 @@ class BaseTicketOutput:
"""
return self.settings.get('_enabled', as_type=bool)
@property
def multi_download_enabled(self) -> bool:
"""
Returns whether or not the ``generate_order`` method may be called. Returns
``True`` by default.
"""
return True
def generate(self, position: OrderPosition) -> Tuple[str, str, str]:
"""
This method should generate the download file and return a tuple consisting of a