From dca7f71d71250fdd3308dbea6fcbdeb3be1c733e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 13 Feb 2014 10:01:22 +0100 Subject: [PATCH] [DOC] mail_thread: docstrings to add raised exceptions in message_process and message_route bzr revid: tde@openerp.com-20140213090122-0gwin1pjigwu42sz --- addons/mail/mail_thread.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index edc1b6e7ba5..030daaae1a9 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -521,6 +521,8 @@ class mail_thread(osv.AbstractModel): to which this mail should be attached. Only used if the message does not reply to an existing thread and does not match any mail alias. :return: list of [model, thread_id, custom_values, user_id] + + :raises: ValueError, TypeError """ if not isinstance(message, Message): raise TypeError('message must be an email.message.Message at this point') @@ -641,6 +643,8 @@ class mail_thread(osv.AbstractModel): to which this mail should be attached. When provided, this overrides the automatic detection based on the message headers. + + :raises: ValueError, TypeError """ if context is None: context = {}