Commit 5bb9d4b6 authored by Rafael Monnerat's avatar Rafael Monnerat 👻

Added DEPRECATED warning. Url.send should not be used anymore. Instead it, use...

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
parent df083b54
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment