From d330aa28a58efa28b0ccd6069a688ac19f506d3a Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 30 Dec 2010 15:46:02 +0000
Subject: [PATCH] this implemenations sounds really not good, do not use srings
 any more

git-svn-id: https://svn.erp5.org/repos/experimental@1949 bc57dcba-3610-0410-ab4f-dc20bb96b918
---
 product/ERP5ShortMessage/Document/ShortMessageDocument.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5ShortMessage/Document/ShortMessageDocument.py b/product/ERP5ShortMessage/Document/ShortMessageDocument.py
index 6c12329477..e88643dcd7 100644
--- a/product/ERP5ShortMessage/Document/ShortMessageDocument.py
+++ b/product/ERP5ShortMessage/Document/ShortMessageDocument.py
@@ -68,7 +68,7 @@ class ShortMessageDocument(Event):
     """Get quantity of sms sended"""
     #XXX-Fx : See with JPS for a new event implementation
     #XXX-Fx : DestinationReference property must be replace by a category
-    return len(self.getDestinationReference().split(','))
+    return len(self.getDestinationList())
 
   security.declareProtected(Permissions.UseMailhostServices,
                             'isDelivered')
@@ -136,4 +136,4 @@ class ShortMessageDocument(Event):
     if message_id_list is not None:
       self.setDestinationReference(",".join(message_id_list))
 
-    return message_id_list
\ No newline at end of file
+    return message_id_list
-- 
2.30.9