I think i don't fully understand the concept of classes in Web Programming. 
Maybe somebody can help me out here. 

Let's say a User wants to define a new Car and after defining the propertys 
of it the Car Object gets created and there will be a menu item added to 
the menu with the name of the car. And he creates some other cars. 
Now i want to have one view where the code will be something like that : 

selectedCarObject.draw()

and the draw function will be different for different Car Objects because 
it's maybe a Porsche Class derived from Car or something else. The 
selection is based on the menu item the user clicks. 

So when starting the application i will load the allready created classes 
from the db. (or i instantiate them with the data from the database) and 
than i store them in the 

*Cache,Session,Global Variable* ?! 

and after the user selects a special car from the dynamic changed menu, i 
can use the above method to separate the methods because it's clear what 
kind of car object the selected object is. 

Is this possible in web2py? Of course i dont want a timeout on storing the 
objects. 
Maybe someone can help me. Thanks. 

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