[Erp5-report] r21657 - /erp5/trunk/products/ERP5/Document/Telephone.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 17 16:57:00 CEST 2008
Author: rafael
Date: Tue Jun 17 16:56:58 2008
New Revision: 21657
URL: http://svn.erp5.org?rev=21657&view=rev
Log:
Added the number without mask if the telephone regex is not able to handle the input.
Modified:
erp5/trunk/products/ERP5/Document/Telephone.py
Modified: erp5/trunk/products/ERP5/Document/Telephone.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Telephone.py?rev=21657&r1=21656&r2=21657&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Telephone.py (original)
+++ erp5/trunk/products/ERP5/Document/Telephone.py Tue Jun 17 16:56:58 2008
@@ -181,7 +181,8 @@
from zLOG import LOG, WARNING
msg = "Doesn't exist a regex to handle this telephone: ", \
coordinate_text
- LOG('Telephone.fromText', WARNING, msg)
+ LOG('Telephone.fromText', WARNING, msg)
+ self.edit(telephone_number = input_without_markup)
return
number_dict = number_match.groupdict()
else:
More information about the Erp5-report
mailing list