mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Refs #40 -- Removed Python 3.2/3.3 support
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
</form>
|
||||
{% else %}
|
||||
<div class="alert alert-error">
|
||||
{% trans "HBCI is only available with Python 3.3 or newer and with aqbanking-cli and aqhbci-tool4 installed." %}
|
||||
{% trans "HBCI is only available with aqbanking-cli and aqhbci-tool4 installed." %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -108,12 +108,9 @@ class ImportView(EventPermissionRequiredMixin, TemplateView):
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
ctx = super().get_context_data(**kwargs)
|
||||
if sys.version_info[:2] >= (3, 3):
|
||||
ctx['hbci_available'] = shutil.which('aqbanking-cli') and shutil.which('aqhbci-tool4')
|
||||
if ctx['hbci_available']:
|
||||
ctx['hbci_form'] = self.hbci_form
|
||||
else:
|
||||
ctx['hbci_available'] = False
|
||||
ctx['hbci_available'] = shutil.which('aqbanking-cli') and shutil.which('aqhbci-tool4')
|
||||
if ctx['hbci_available']:
|
||||
ctx['hbci_form'] = self.hbci_form
|
||||
return ctx
|
||||
|
||||
def process_csv_file(self):
|
||||
|
||||
Reference in New Issue
Block a user