lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 0.8.1-13-g9ec3cb0

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 0.8.1-13-g9ec3cb0



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  9ec3cb0b4de9401b27eb9ac1e296f73737654f00 (commit)
      from  7f30979a49c2605c9a5825281f73ef57bfa66192 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/python-stdnum/commit/?id=9ec3cb0b4de9401b27eb9ac1e296f73737654f00

commit 9ec3cb0b4de9401b27eb9ac1e296f73737654f00
Author: C├ędric Krier <ced@b2ck.com>
Date:   Mon Dec 30 17:47:09 2013 +0100

    Add support for proxy

diff --git a/stdnum/eu/vat.py b/stdnum/eu/vat.py
index 1c3c9f2..460bb38 100644
--- a/stdnum/eu/vat.py
+++ b/stdnum/eu/vat.py
@@ -125,5 +125,6 @@ def check_vies(number):  # pragma: no cover (no tests for 
this function)
     global _vies_client
     if not _vies_client:
         from suds.client import Client
-        _vies_client = Client(vies_wsdl)
+        from urllib import getproxies
+        _vies_client = Client(vies_wsdl, proxy=getproxies())
     return _vies_client.service.checkVat(number[:2], number[2:])

-----------------------------------------------------------------------

Summary of changes:
 stdnum/eu/vat.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/