Added the possibility to customize the global message when validation fails.

This commit is contained in:
Gaetan Delannay 2011-02-06 17:39:36 +01:00
parent 77112c45be
commit 9f418439aa
5 changed files with 16 additions and 10 deletions

View file

@ -42,7 +42,7 @@ class AbstractWrapper:
# There is a custom user class
customUser = self.__class__.__bases__[-1]
if customUser.__dict__.has_key(methodName):
customUser.__dict__[methodName](self, *args, **kwargs)
return customUser.__dict__[methodName](self, *args, **kwargs)
def get_tool(self): return self.o.getTool().appy()
tool = property(get_tool)