From 7d43e2f3d320c8e9f1a2ca6eabbe45e322e26cf2 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 12 Mar 2013 12:49:36 +0530 Subject: [PATCH] added comment to validate value --- webnotes/model/controller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webnotes/model/controller.py b/webnotes/model/controller.py index 9f31f9decc..2bc58bec6b 100644 --- a/webnotes/model/controller.py +++ b/webnotes/model/controller.py @@ -50,6 +50,8 @@ class DocListController(object): return self._meta def validate_value(self, fieldname, condition, val2, doc=None): + """check that value of fieldname should be 'condition' val2 + else throw exception""" if not doc: doc = self.doc