Re: Proposal: Signal after model of app was loaded

2008-10-22 Thread Thomas Guettler
Hi Malcolm and others, your solution would solve my problem. I drop this proposal. Malcolm Tredinnick schrieb: > On Tue, 2008-10-21 at 13:07 +0200, Thomas Guettler wrote: > >> Hi, >> >> what do you think about a signal which fires after the models >> of an application where loaded? >> [c

Re: Proposal: Signal after model of app was loaded

2008-10-22 Thread Tai Lee
I'd love to see this feature implemented. I was previously (mistakenly) using `management.py` in my app folders for this, thinking that it was imported when any management command was executed (such as `runfcgi`, `runserver`, `shell`, etc). Unfortunately it's only imported when `syncdb` is execute

Re: Proposal: Signal after model of app was loaded

2008-10-22 Thread Malcolm Tredinnick
On Tue, 2008-10-21 at 13:07 +0200, Thomas Guettler wrote: > Hi, > > what do you think about a signal which fires after the models > of an application where loaded? Probably not necessary. > > Use case: > > Load static (never changing objects) from the database and make them > available > at

Proposal: Signal after model of app was loaded

2008-10-21 Thread Thomas Guettler
Hi, what do you think about a signal which fires after the models of an application where loaded? Use case: Load static (never changing objects) from the database and make them available at module or class level. In my case I want to load some permissions and make them available as Permission i