From 5bb9d4b6915e5fd926f1bd1fc2910cccff0fecd6 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Wed, 11 Jun 2008 15:17:12 +0000
Subject: [PATCH] Added DEPRECATED warning. Url.send should not be used
 anymore. Instead it, use portal_notifications.sendMessage directly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21506 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/Url.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5/Document/Url.py b/product/ERP5/Document/Url.py
index 9289919d8a..b12fe35128 100644
--- a/product/ERP5/Document/Url.py
+++ b/product/ERP5/Document/Url.py
@@ -32,6 +32,7 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
 from Products.ERP5Type.Base import Base
 from Products.ERP5.Document.Coordinate import Coordinate
 from Products.ERP5.Tool.NotificationTool import buildEmailMessage
+from zLOG import LOG
 
 no_crawl_protocol_list = ['mailto', 'javascript', ]
 no_host_protocol_list = ['mailto', 'news', 'javascript',]
@@ -147,6 +148,9 @@ class Url(Coordinate, Base, UrlMixIn):
     * extra_headers is a dictionnary of custom headers to add to the email.
       "X-" prefix is automatically added to those headers.
     """
+    LOG('ERP5/Document/Url.send',0, 
+     'DEPRECATED Url.send should not be used, use portal_notifications instead.')
+
     if from_url is None:
       from_url = self.getUrlString(None)
     if to_url is None:
-- 
2.30.9