[IMP] needaciton + mail

bzr revid: fp@openerp.com-20120819150038-u6519dee90enzui4
This commit is contained in:
Fabien Pinckaers
2012-08-19 17:00:38 +02:00
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -63,5 +63,5 @@ class ir_needaction_mixin(osv.Model):
dom = self._needaction_domain_get(cr, uid, context=context)
if dom is False:
return 0
return self.search(cr, uid, domain+dom, context=context, count=True)
return self.search(cr, uid, (domain or []) +dom, context=context, count=True)
+6
View File
@@ -1113,6 +1113,12 @@ class unquote(str):
def __repr__(self):
return self
def emails_split(text):
"""Return a list of the email addresses found in ``text``"""
if not text: return []
return re.findall(r'([^ ,<@]+@[^> ,]+)', text)
class UnquoteEvalContext(defaultdict):
"""Defaultdict-based evaluation context that returns
an ``unquote`` string for any missing name used during