Refs #40 -- Removed Python 3.2/3.3 support

This commit is contained in:
Raphael Michel
2015-08-22 14:22:55 +02:00
parent 6b341ed485
commit 9ab6cc52c7
6 changed files with 7 additions and 22 deletions

View File

@@ -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>

View File

@@ -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):