added comment to validate value

This commit is contained in:
Anand Doshi 2013-03-12 12:49:36 +05:30
parent ba11f5af47
commit 7d43e2f3d3

View file

@ -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