Yes, I tried it on the model, it is true on every request. I don't understand why.
On Tuesday, August 14, 2012 3:07:43 PM UTC-7, Anthony wrote: > > Where would you put that? If in a model or controller, won't the condition > be true on every request? > > Anthony > > On Tuesday, August 14, 2012 4:44:24 PM UTC-4, Derek wrote: >> >> Would it not be possible to do something like this: >> >> if 'db' not in dir(): >> db = DAL(...) >> >> >> On Monday, August 13, 2012 6:43:34 PM UTC-7, rochacbruno wrote: >>> >>> >>> Thinking again... >>> >>> It could be better if "define_my_tables" run once on the very first >>> request and table keeps defined forever from there.... >>> >> --