On Jan 29, 4:45 am, Andreas Kaiser <[email protected]> wrote: > On 29.01.2013, at 09:24, Andreas Jung <[email protected]> wrote: > > However when I call this method during the startup phase > > from the main() method of my app then 'settings' evaluates to None. > > You should almost never use pyramid.threadlocal.get_current_registry() > in application code if there's another way to get the registry (such as > e.g. request.registry in a view).
Could this be implemented withinin an event ? There is an ApplicationCreated event http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/api/events.html -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
