bulk email: parse html2text only once and autocommit on many writes

This commit is contained in:
Rushabh Mehta
2012-09-24 13:09:05 +05:30
parent 473f7d6314
commit feaea28fdf
3 changed files with 170 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ class DocType():
return self.message
def send(self, query_key, doctype):
webnotes.conn.auto_commit_on_many_writes = True
recipients = self.get_recipients(query_key)
sender = webnotes.utils.get_email_id(self.doc.owner)
args = self.dt_map[doctype]