Refs #44 -- Added background queue support for ticket output

This commit is contained in:
Raphael Michel
2015-09-16 11:18:18 +02:00
parent 9ecd16c19c
commit 1a463dd5b1
6 changed files with 65 additions and 13 deletions

View File

@@ -28,9 +28,10 @@ class BaseTicketOutput:
"""
return self.settings.get('_enabled', as_type=bool)
def generate(self, request: HttpRequest, order: Order) -> HttpResponse:
def generate(self, order: Order) -> tuple:
"""
This method should generate the download file and return it to the user.
This method should generate the download file and return a tuple consisting of a
filename, a file type and file content.
"""
raise NotImplementedError()