Added Notification Control for caching notifications probably causing the freezing problem

This commit is contained in:
Rushabh Mehta
2013-11-18 13:22:07 +05:30
parent 0809a95a70
commit 04cc5155f7
8 changed files with 31 additions and 15 deletions

View File

@@ -3,7 +3,6 @@
from __future__ import unicode_literals
import webnotes
import MySQLdb
def execute():
webnotes.reload_doc("core", "doctype", "communication")
@@ -17,6 +16,6 @@ def execute():
set parenttype=%s, parentfield='communications',
parent=`%s`
where ifnull(`%s`, '')!=''""" % ("%s", fieldname, fieldname), doctype)
except MySQLdb.OperationalError, e:
except webnotes.SQLError, e:
if e.args[0] != 1054:
raise