Hello all,

I am developing a web2py application and I am writing the logic to control 
stock of certain items. To that end, I wrote a custom validator which is 
working fine when creating new "sale" items. Now the problem arises when 
updating these sale items, because I would need to know the actual record 
being updated to adjust the logic in this cases.
 
I could get this information through ._before_update method, but how would 
I pass it to the validator ?

I am not sure if this is the best way to do it. I will appreciate any help 
on this matter!

Best regards,

Clara


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to