Wow thanks! Chris
On May 1, 1:46 am, lilspikey <[EMAIL PROTECTED]> wrote: > On May 1, 7:34 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > It appears I can alter database records/objects just fine *within* > > controllers but not *outside* of controllers. > > > I use turbogears.scheduler.add_weekday_task to invoke a function that > > is not a controller. It appears this function invoked by > > turbogears.scheduler.add_weekday_task cannot change database because > > it isn't a controller. > > > Are there any gotchas/differences between touching database in a > > controller and in an unrelated function? > > Inside a controller your code will be running in a transaction - > whereas elsewhere it won't. There's a bit of stuff here: > > http://docs.turbogears.org/1.0/ModelOutsideTG --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

