[web2py] Re: Custom validator - pass record id to validator for update operations

2014-12-02 Thread clara
Hello Andrew, It does make sense! I was actually passing one of the record fields to my validator instead of the record ID I could just have passed the id and then have access to any field in the record. Thanks a lot ! Clara El lunes, 1 de diciembre de 2014 12:20:11 UTC-3, Andrew Buchan

[web2py] Re: Custom validator - pass record id to validator for update operations

2014-12-01 Thread Andrew Buchan
Hi Clara, I think (someone please correct me if I'm wrong -- and have a look at my other question posted just after this :D) that the validator has no access to the record. But because you can set the validator on a field at any time, one solution is to chang your validator class so it knows