mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
Add wallet plugins stub
This commit is contained in:
@@ -114,7 +114,7 @@ class BaseTicketOutput:
|
||||
If you override this method, make sure that positions that are addons (i.e. ``addon_to``
|
||||
is set) are only outputted if the event setting ``ticket_download_addons`` is active.
|
||||
Do the same for positions that are non-admission without ``ticket_download_nonadm`` active.
|
||||
If you want, you can just iterate over ``order.positions_with_tickets`` which applies the
|
||||
If you want, you can just iterate over ``self.get_tickets_to_print`` which applies the
|
||||
appropriate filters for you.
|
||||
"""
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
@@ -192,6 +192,15 @@ class BaseTicketOutput:
|
||||
"""
|
||||
pass
|
||||
|
||||
@property
|
||||
def show_settings(self) -> bool:
|
||||
"""
|
||||
Returns whether or not this output should be shown in the ticket settings.
|
||||
|
||||
.. note:: If you set this to false, you need to have some other mechanism to decide whether this output is enabled
|
||||
"""
|
||||
return True
|
||||
|
||||
@property
|
||||
def download_button_text(self) -> str:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user