Re: m2m table names

2008-09-20 Thread Russell Keith-Magee
On Sat, Sep 20, 2008 at 6:13 PM, HenrikV <[EMAIL PROTECTED]> wrote: > > I am working on #3011, making the User model overridable. Ok - do you think this might have been useful information to include on your original query? > I have a > working patch, but > if I set the db_table on the User model

Re: [Fwd: Documentation: Google-foo lost]

2008-09-20 Thread Steve Holden
Steve Holden wrote: > Jacob Kaplan-Moss wrote: >> On Fri, Sep 19, 2008 at 2:19 AM, Steve Holden <[EMAIL PROTECTED]> wrote: >> >>> The question is: is it worth continuing this web-scraping and analysis >>> and potentially extending it to other reference mechanisms I am unaware >>> of? I don't kn

Re: [Fwd: Documentation: Google-foo lost]

2008-09-20 Thread Steve Holden
Jacob Kaplan-Moss wrote: > On Fri, Sep 19, 2008 at 2:19 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > >> The question is: is it worth continuing this web-scraping and analysis >> and potentially extending it to other reference mechanisms I am unaware >> of? I don't know whether the current redi

Re: testing middleware with the django.test.Client

2008-09-20 Thread HenrikV
I have added a ticket with a patch http://code.djangoproject.com/ticket/9159 On Sep 20, 11:27 am, HenrikV <[EMAIL PROTECTED]> wrote: > The testing client is great for testing the whole request chain. It > doesn't seem to support > testing of middleware very well though. I think it should be impr

Re: Concrete django.template Suggestions

2008-09-20 Thread zvoase
Oh, and by the way, with regards to thread safety, changes should be made in the context, not the node. I'm currently working on a refactor of the template system at the moment, something will be done within a couple of days. If it's really necessary (I mean, I'm just doing it for fun, but it migh

Re: Proposal: installmedia command - A story for distributing media with apps

2008-09-20 Thread Erik Allik
I see your point about overriding reusable app media. I got an idea though when reading your post. Since people want to update reusable apps to a more recent version/revision and since that means the media files will/might change, why not add another command that would show which installed

Re: Proposal: installmedia command - A story for distributing media with apps

2008-09-20 Thread Brian Beck
On Sep 20, 6:58 am, Erik Allik <[EMAIL PROTECTED]> wrote: > Has anyone got some good use cases where the template-loaded mimicking   > behavior would be desired? Otherwise it's just needless complexity in   > my opinion. Well, first of all, it's not really complexity at all. If it were to just c

Re: Proposal: installmedia command - A story for distributing media with apps

2008-09-20 Thread Erik Allik
> If multiple apps provide a media file of the same name, use the file > provided by the app listed first in INSTALLED_APPS - this mimics the > template loader behavior. In interactive mode (-i), you may specify > which app to select from for each such file. With this command, best > practice wo

testing Client and middleware

2008-09-20 Thread HenrikV
The testing client is great for testing the whole request chain. It doesn't seem to support testing of middleware very well though. I think it should be improved to support two approaches: 1) Directly calling the middleware functions passing a request and response. 2) Calling the middleware as pa

Re: m2m table names

2008-09-20 Thread HenrikV
I am working on #3011, making the User model overridable. I have a working patch, but if I set the db_table on the User model, the queryset and syncdb doesn't seem to agree on what the m2m table should be called. As a sidenote there seems to a problem with certain combinations db_table and app_na

Re: Concrete django.template Suggestions

2008-09-20 Thread zvoase
Probably the best thing to do, if anything, is to make something new and get it working alongside the old system, much like "oldforms" and "newforms" in 0.96. That way you keep backwards compatibility but people can also leverage new features in their code. Regards, Zack On Sep 20, 3:48 am, Malc