Re: [web2py] Keep the instance of a class during the session

2010-06-06 Thread Thadeus Burgess
cache the object. -- Thadeus On Sun, Jun 6, 2010 at 7:23 PM, Jose wrote: > I have a module (in my_app / modules) that defines a class MyClass. > This class operates with model data. In the __init__ there is a heavy > workload, and data are available for other minor calculations. > > What I wa

[web2py] Keep the instance of a class during the session

2010-06-06 Thread Jose
I have a module (in my_app / modules) that defines a class MyClass. This class operates with model data. In the __init__ there is a heavy workload, and data are available for other minor calculations. What I want is to create an instance of MyClass [my_object = MyClass (...)] a function of my cont