Kevin Dangoor wrote:
>
> Validation errors should be genuine errors. If it's valid for a value
> to be empty, the validators should be configured that way...
Even so, it should usually be handled by the function that knows about
it, not some catch all. In fact, I have a mix feeling about the liberal
use of exception in python. Some how, it no longer seems like exception
to me but random go tos.


>
> getattr(self, methodname)(params)
>
This won't work if it is defined like this :

@turbogears.expose()
@my_decorator()
def foo(self):

What turogears see is my_decorator, not foo but validate_error see
"self" which tries to search for my_decorator and won't find it as it
could be some function in outer space.

Reply via email to