On Monday 29 June 2009 15:30:50 Aly Merchant wrote: > I was able to figure out the cause of the issue. It seems that the > code was executed before the configuration had been fully read and I > was trying to read out configuration options when the module was > loaded. > > Is there some way to ensure that the configuration has been read > before this point? Or is there a better place to move this code (it > was under a module I added under model)?
Try not accessing config during import, but instead provide an explicit init-function which you call from e.g. yourapp/config/middleware.py. Thus you can be sure the proper config is in place. 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 -~----------~----~----~----~------~----~------~--~---

