On Jul 1, 2011, at 6:54 PM, Adrian wrote: > Hi all -- > > First, I have a few questions. > > 1) When I create a controller class for a page, does that class get > instantiated into a new object every time someone goes to the page, or > does it only get instantiated by root.py so that any subsequent > loading of a page just calls the .index() method on that object?
Controller-Objects are singletons. So never use self in them for anything that is not global/static in nature. Diez -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

