diff options
| author | uco <uco@tinyerp.com> | 2010-07-10 10:25:33 +0530 |
|---|---|---|
| committer | uco <uco@tinyerp.com> | 2010-07-10 10:25:33 +0530 |
| commit | df65d72814b245970d0d2dfca4bcd9c2ca85f9a7 (patch) | |
| tree | 58fa147b64f35ee2b5c8951d3daa9566fe0ae910 /addons/project/project_mailgate.py | |
| parent | 2185d20b4c7dafe40ad5c0a484207e58eeacbd42 (diff) | |
| parent | b051735eecccd1e66d8f28d2ff50ba45435b49f7 (diff) | |
[MERGE]
bzr revid: uco@tinyerp.com-20100710045533-op3teksgyqouzv0o
Diffstat (limited to 'addons/project/project_mailgate.py')
| -rw-r--r-- | addons/project/project_mailgate.py | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/addons/project/project_mailgate.py b/addons/project/project_mailgate.py index b057c98b03d..8c1004b52fa 100644 --- a/addons/project/project_mailgate.py +++ b/addons/project/project_mailgate.py @@ -19,24 +19,13 @@ # ############################################################################## -import time -import re -import os - -import mx.DateTime -import base64 - -from tools.translate import _ - -import tools -from osv import fields,osv,orm -from osv.orm import except_orm +from osv import fields,osv class project_tasks(osv.osv): _name = "project.task" _inherit = "project.task" - def msg_new(self, cr, uid, msg): + def msg_new(self, cr, uid, msg): mailgate_obj = self.pool.get('mail.gateway') msg_body = mailgate_obj.msg_body_get(msg) data = { @@ -72,14 +61,11 @@ class project_tasks(osv.osv): if msg_actions['priority'] in ('1','2','3','4','5'): data['priority'] = msg_actions['priority'] - self.write(cr, uid, [id], data) getattr(self,act)(cr, uid, [id]) return True def message_followers(self, cr, uid, ids, context=None): - if context is None: - context = {} res = [] if isinstance(ids, (str, int, long)): select = [ids] @@ -93,6 +79,8 @@ class project_tasks(osv.osv): return res def msg_send(self, cr, uid, id, *args, **argv): - return True + return True project_tasks() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file |
