[IMP] needaciton + mail
bzr revid: fp@openerp.com-20120819150038-u6519dee90enzui4
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user