[Erp5-report] r21506 - /erp5/trunk/products/ERP5/Document/Url.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jun 11 17:17:13 CEST 2008
Author: rafael
Date: Wed Jun 11 17:17:12 2008
New Revision: 21506
URL: http://svn.erp5.org?rev=21506&view=rev
Log:
Added DEPRECATED warning. Url.send should not be used anymore. Instead it, use portal_notifications.sendMessage directly.
Modified:
erp5/trunk/products/ERP5/Document/Url.py
Modified: erp5/trunk/products/ERP5/Document/Url.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Url.py?rev=21506&r1=21505&r2=21506&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Url.py (original)
+++ erp5/trunk/products/ERP5/Document/Url.py Wed Jun 11 17:17:12 2008
@@ -32,6 +32,7 @@
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 @@
* 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:
More information about the Erp5-report
mailing list