diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-02-13 10:01:22 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-02-13 10:01:22 +0100 |
| commit | dca7f71d71250fdd3308dbea6fcbdeb3be1c733e (patch) | |
| tree | e2966d7b239ed39f0d14d432fa9502f69a3c6e79 | |
| parent | bc0232cee63c2dbc79e2d9b93c8c10e034bc385f (diff) | |
[DOC] mail_thread: docstrings to add raised exceptions in message_process and message_route
bzr revid: tde@openerp.com-20140213090122-0gwin1pjigwu42sz
| -rw-r--r-- | addons/mail/mail_thread.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 = {} |
