From f1274a2a72772622d4e77d5c5320e00601fc2db3 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Mon, 31 May 2010 18:16:48 +0530 Subject: [PATCH] [REF] bzr revid: jvo@tinyerp.com-20100531124648-0sweu1d8yvtznyst --- addons/mail_gateway/__openerp__.py | 4 ++-- addons/mail_gateway/mail_gateway.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/mail_gateway/__openerp__.py b/addons/mail_gateway/__openerp__.py index b5e56a03ee1..aaf12b926b3 100644 --- a/addons/mail_gateway/__openerp__.py +++ b/addons/mail_gateway/__openerp__.py @@ -27,8 +27,8 @@ * IMAP / IMAP with SSL * POP / POP with SSL * SMTP / SMTP with TLS - * ACL basd access polocy - * Queing and History for Emails + * ACL based access policy + * Queueing and History for Emails * Easy Integration with any Module""", 'author': 'Tiny', 'website': 'http://www.openerp.com', diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index 8534c32c510..05d27ce3ef2 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -30,7 +30,7 @@ class one2many_domain(fields.one2many): user=user, context=context) def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): - if not context: + if context is None: context = {} res = {} msg_obj = obj.pool.get('mailgate.message') @@ -65,7 +65,7 @@ class mailgate_thread(osv.osv): @param email: Email address if any @param details: Details of case history if any @param context: A standard dictionary for contextual values""" - if not context: + if context is None: context = {} # The mailgate sends the ids of the cases and not the object list if all(isinstance(case_id, (int, long)) for case_id in cases) and context.get('model'):