From 7a392df70d2a00c7655d74530f4f4e54f89071d7 Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 29 Jul 2014 14:37:25 +0000 Subject: [PATCH] Added XML dependencies --- orchestra/apps/payments/methods.py | 5 ++++- orchestra/bin/orchestra-admin | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/orchestra/apps/payments/methods.py b/orchestra/apps/payments/methods.py index 6bcc679c..54252c75 100644 --- a/orchestra/apps/payments/methods.py +++ b/orchestra/apps/payments/methods.py @@ -10,6 +10,7 @@ from rest_framework import serializers from orchestra.utils import plugins +from . import settings from .forms import BankTransferForm, CreditCardForm @@ -93,7 +94,7 @@ class BankTransfer(PaymentMethod): ), ) - def process(self, transactions) + def process(self, transactions): self.set_id() creditor_name = settings.PAYMENTS_DD_CREDITOR_NAME creditor_iban = settings.PAYMENTS_DD_CREDITOR_IBAN @@ -159,6 +160,8 @@ class BankTransfer(PaymentMethod): schema.assertValid(sepa) # TODO where to save this shit? # TODO new model? Payment with batch support, How this relates to transaction? + # TODO positive only amount ? + # TODO what with negative amounts? what are amendments? return etree.tostring(page, pretty_print=True, xml_declaration=True) diff --git a/orchestra/bin/orchestra-admin b/orchestra/bin/orchestra-admin index f44d7456..56d1f16b 100755 --- a/orchestra/bin/orchestra-admin +++ b/orchestra/bin/orchestra-admin @@ -125,7 +125,9 @@ function install_requirements () { rabbitmq-server \ python-dev \ bind9utils \ - python-cracklib" + python-cracklib \ + libxml2-dev \ + libxslt1-dev" PIP="django==1.6.1 \ django-celery-email==1.0.4 \ @@ -144,7 +146,8 @@ function install_requirements () { Pygments==1.6 \ django-filter==0.7 \ passlib==1.6.2 \ - jsonfield==0.9.22" + jsonfield==0.9.22 \ + lxml==3.3.5" if $testing; then APT="${APT} \