Re: ignore some endpoing in before_request validation
- Jose Ayerdis
- 2013-01-14 @ 08:13
I have been founding that writing here magically light the bull to know
what was going on, and it was a problem inside the endpoint method.
Next time I'll try to do
Sorry and thanks!!
[Jose Luis Ayerdis Espinoza]
2013/1/14 Jose Ayerdis <firstname.lastname@example.org>
> Hi I am trying to do some validation of the format of my json, depending
> on the endpoint but some I would like to skip this validation I have try to
> return None as an object in
> def validate_request():
> #ignore items validation if login or logout
> if request.endpoint == 'user.login':
> return None
> MORE CHUNKS OF VALIDATION HERE
> But does not seem to be working any advice?
> PD. I know it enters the condition that returns None.
> Sincerly yours,
> [Jose Luis Ayerdis Espinoza]
> Necronet.info |
> StackOverflow <http://careers.stackoverflow.com/necronet>