Re: [web2py] Custom functions in Model

2010-02-17 Thread Tiago Almeida
Why does everything need to work from model? Is it some requirement? Can't you do a function that takes the form and implements that logic? you can probably make it so that you pass that function to the onvalidation (or something like that) of the form.accepts.. Regards, Tiago On Wed, Feb 17,

[web2py] Custom functions in Model

2010-02-17 Thread JAY
Execute functions in Model Hi Guys, first i´ve to say i am n(oob)ew to Python and Database things, so please be patient. Is there any general way to execute custom functions in Model, which not only validate and how to implement them? I´ll try to explain with a few examples: First the simple o