On Saturday, December 5, 2015 at 11:37:01 AM UTC-5, Alessio Varalta wrote:
>
> Hi, I have a problem..I have controller with too much code..So I want to 
> use the logic of Java or Ruby. Have a class that represent the object of my 
> database and implement function in this class and use this class in the 
> Controller. The problem is that I try the VirtualField a part of web2py 
> guide 
>
> in db file I create
> class Layer_scheda(object):
>         def change_name(self,nome):
>             self.nome=nome
>             self.update.update_record() 
>

It would just be self.update_record(), not self.update.update_record().
 

> after in my Controller i try 
>
> order_item.change_name
> or order_item.change_name() but I have problem   change_name is not defined
>

What is order_item?

Anthony

-- 
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.

Reply via email to