Re: still some magic left in magic removal

2006-02-04 Thread hugo
>But have you tried getting the >above to work with magic-removal? It doesn't work for me (i.e. I can >import the models with 'from appname.models import MyModel, but the >models aren't found by django admin etc), hence my other thread 'Models >in separate files'. In that case, open up a ticket

Re: still some magic left in magic removal

2006-02-04 Thread Luke Plant
On Saturday 04 February 2006 11:12, hugo wrote: > Nobody prevents you from doing models/__init__.py and loading all > your model snippets in there - but I am really strong objected > against the framework _requiring_ such bloat. So if your app really > needs structuring models into different fil

Re: still some magic left in magic removal

2006-02-04 Thread Robert Wittams
Amit Upadhyay wrote: > On 2/4/06, Robert Wittams <[EMAIL PROTECTED]> wrote: > >> >>...Horrible api example deleted... > > > > Lets see. > > >>Cramming everything in a class will always force us to do some meta >> >>>programming. >> >>This has no meaning as far as I can tell. Are you seriousl

Re: still some magic left in magic removal

2006-02-04 Thread hugo
>I was going through magic removal wiki page, and encountered this, I think >there is still some magic left in the Custom managers, and multiple >managerssection. I have a following objections: It's maybe not perfect, but a very good start. No one prevents later refinements - we just need somethi

Re: still some magic left in magic removal

2006-02-03 Thread Amit Upadhyay
On 2/4/06, Robert Wittams <[EMAIL PROTECTED]> wrote: ...Horrible api example deleted...Lets see. > Cramming everything in a class will always force us to do some meta > programming.This has no meaning as far as I can tell. Are you seriously suggestingthat we shouldn't even use metaclasses? Well I a

Re: still some magic left in magic removal

2006-02-03 Thread Robert Wittams
...Horrible api example deleted... > Cramming everything in a class will always force us to do some meta > programming. This has no meaning as far as I can tell. Are you seriously suggesting that we shouldn't even use metaclasses? >Devoting a module and spreading things give better flexibility.

still some magic left in magic removal

2006-02-03 Thread Amit Upadhyay
Hi,I was going through magic removal wiki page, and encountered this, I think there is still some magic left in the Custom managers, and multiple managers section. I have a following objections: finding the default manager based on the order in which they are definedmanager instance magically conta