There is a problem VirutalField Method don't permit operation insert,update,delete so is not helpful and the exempio of Massimo don't work if you call the function in the controller...So I don't find a solution I don't understand why there isn't a point of guide about this I think that any programmer have the need to put some code in a class that represent the table and class function for manipulate the table..For big project you can write all in a code or create many modules file with only function On Wednesday, 2 December 2015 17:20:25 UTC+1, Alessio Varalta wrote: > > Thanks, Is the work for my project :) I see now in the guide the part of > DatabaseLayer- Virtual Field > > On Wednesday, 2 December 2015 17:13:48 UTC+1, Anthony wrote: >> >> Not sure if this is what you're looking for, but check out >> https://groups.google.com/forum/#!msg/web2py/ceqq4JwkWi4/csn0kZfyPuwJ >> (not documented in the book). >> >> Anthony >> >> On Wednesday, December 2, 2015 at 10:59:39 AM UTC-5, Alessio Varalta >> wrote: >>> >>> Hi, I want to assign specific function to a Model of the Dal for example >>> I have the table layer_scheda and I want to add the method change_pos..For >>> example in Java o Ruby we have a package with the model class where you can >>> put the function inside the class in these case with Web2py? >>> >>
-- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

