[added] frappe.safe_eval

This commit is contained in:
Rushabh Mehta 2017-04-06 18:58:39 +05:30
parent 9365641777
commit b58979fd3e

View File

@ -119,7 +119,7 @@ class StatusUpdater(Document):
self.status = s[0] self.status = s[0]
break break
elif s[1].startswith("eval:"): elif s[1].startswith("eval:"):
if frappe.safe_eval(s[1][5:]): if eval(s[1][5:]):
self.status = s[0] self.status = s[0]
break break
elif getattr(self, s[1])(): elif getattr(self, s[1])():