From 342cb75cba7ba6bdb890ce72f593e5df2dd92ca8 Mon Sep 17 00:00:00 2001 From: leto Date: Sat, 19 Nov 2011 21:58:52 +0100 Subject: [PATCH] add a 'shape' field and antispam update Signed-off-by: leto Signed-off-by: Romain Bignon --- weboob/backends/aum/antispam.py | 8 +++++++- weboob/backends/aum/contact.py | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/weboob/backends/aum/antispam.py b/weboob/backends/aum/antispam.py index 8dba6b59..0fdc679d 100644 --- a/weboob/backends/aum/antispam.py +++ b/weboob/backends/aum/antispam.py @@ -58,9 +58,13 @@ class AntiSpam(object): return False if ipaddr.startswith('194.177.'): return False + if ipaddr.startswith('41.85.'): + return False + if ipaddr.startswith('41.86.'): + return False if re.match('105\.13\d.*', ipaddr): return False - if ipaddr in ('62.157.186.18', '198.36.222.8', '212.234.67.61'): + if ipaddr in ('62.157.186.18', '198.36.222.8', '212.234.67.61', '203.193.158.210', '41.189.34.180', '41.66.12.36', '196.47.137.21', '213.136.125.122'): return False return True @@ -101,6 +105,8 @@ class AntiSpam(object): return False if ipaddr.endswith('.cba.embratel.net.br'): return False + if ipaddr.endswith('.idstelcom.com'): + return False return True def check_mail(self, mail): diff --git a/weboob/backends/aum/contact.py b/weboob/backends/aum/contact.py index f7afce13..4e011777 100644 --- a/weboob/backends/aum/contact.py +++ b/weboob/backends/aum/contact.py @@ -156,6 +156,7 @@ class Contact(_Contact): ('weight', FieldList('weight')), ('BMI', FieldBMI('size', 'weight')), ('fat', FieldBMI('size', 'weight', fat=True)), + ('shape', FieldList('shape')), ('origins', FieldList('origins')), ('signs', FieldFlags('checks1')), ('job', FieldStr('job')),