On Sep 11, 8:28 am, wf321 <[email protected]> wrote: > I still not understand why table define in model/db.py only need > define once, then all sub-sequence requests can access it without > execute db.define_table at every request
The models get executed in every request. >, but table define in > default.py need execute db.define_table at every request. I guess you're talking about controllers/default.py - these will only get executed when the default controller is run (if outside of functions) or if a fucntion is called (if inside). Won't be visible to any other controllers. Suggest reading the manual to see program flow. If you can't afford the manual then the cookbook has this too: http://www.scribd.com/doc/16085263/web2py-slides-version-163 F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

