From ccd0a2319220a41efdbeca235bc7c28f0e4bbad6 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 8 Sep 2005 12:44:43 +0000 Subject: [PATCH] allow to customize the output of the asText method through a script found by _getTypeBasedMethod git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3757 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Telephone.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5/Document/Telephone.py b/product/ERP5/Document/Telephone.py index e15d621f94..c485a8b1ac 100755 --- a/product/ERP5/Document/Telephone.py +++ b/product/ERP5/Document/Telephone.py @@ -95,6 +95,9 @@ class Telephone(Coordinate, Base): """ Returns the telephone number in standard format """ + script = self._getTypeBasedMethod('asText') + if script is not None: + return script() text = '+' if self.telephone_country != None: text += self.telephone_country -- 2.30.9