Re: Logging instead of connection.queries

2009-08-06 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > Unfortunately, this ticket doesn't solve Ivan's problem of the moment, > as far as I can see. Yeah, it sends signals in addition to maintaining connection.queries. My point (or one of them) is to replace current hard-coded implementation with something lower-level a

Re: Admin doesn't consider custom permission methods when displaying index page (#8146)

2009-08-06 Thread Michael
On Thu, Aug 6, 2009 at 2:26 PM, Enrico wrote: > > Hello Michael! > > Thanks for replying. > > The point is that I want to give the user access to some objects, not > all. > For example, a user can edit his own blog posts, but he can't edit all > the blog posts. > It's almost like row-level permis

Re: Admin doesn't consider custom permission methods when displaying index page (#8146)

2009-08-06 Thread Enrico
Hello Michael! Thanks for replying. The point is that I want to give the user access to some objects, not all. For example, a user can edit his own blog posts, but he can't edit all the blog posts. It's almost like row-level permissions. For this to be consistent, I can't give him "blog.change_

Re: Admin doesn't consider custom permission methods when displaying index page (#8146)

2009-08-06 Thread Michael
On Thu, Aug 6, 2009 at 1:51 PM, Enrico wrote: > > I came across the situation described on the ticket #8146 [1], I've > changed the permissions for a model allowing the user to access only > certain instances of a model. > > As I don't want to give the user access to all objects, I've extended >

Admin doesn't consider custom permission methods when displaying index page (#8146)

2009-08-06 Thread Enrico
I came across the situation described on the ticket #8146 [1], I've changed the permissions for a model allowing the user to access only certain instances of a model. As I don't want to give the user access to all objects, I've extended the `AdminSite`, changing the `index` view to ignore `user.h

Re: Template Caching

2009-08-06 Thread Mike Malone
> On Thu, Aug 6, 2009 at 2:55 AM, Russell > Keith-Magee wrote: >> As is noted in the ticket, one of the reasons that this wasn't done >> originally was that the performance boost wasn't seen as being that >> considerable. > > I suspect there'll be a goodly speedup even for the common case, since >

Re: URL of current page in Django Form

2009-08-06 Thread Justin Lilly
Hi Neal. You're looking for the django-users list. This is for talking about the core framework, not how to use it. Best of luck! -justin On Thu, 06 Aug 2009, NealWalters wrote: > > Is there a keyword that will automatically put the URL of the current > page in the Django form? > Or do I

URL of current page in Django Form

2009-08-06 Thread NealWalters
Is there a keyword that will automatically put the URL of the current page in the Django form? Or do I have to do that in code and pass it to the form as a normal user variable? Here's what I'm trying to accomplish. I have a feedback form on a base template. When the user clicks the feedback but

Re: Template Caching

2009-08-06 Thread Alex Gaynor
On Thu, Aug 6, 2009 at 8:15 AM, Jacob Kaplan-Moss wrote: > > Hi Mike -- > > Ah, it looks like my strategy of "wait for someone else to reply and > hope that he sums up my feelings so that I don't have to bother" has > worked perfectly. Thanks, Russ! > > [IOW: I agree completely with Russ.] > > I'l

Re: Template Caching

2009-08-06 Thread Marty Alchin
I won't speak to most of this, since Russ and Jacob have said it all, but I do want to respond to one point. On Thu, Aug 6, 2009 at 3:55 AM, Russell Keith-Magee wrote: >> By simply checking that the template has a ``render`` method in >> ``get_template``, we get the added benefit of allowing user

Re: Template Caching

2009-08-06 Thread Jacob Kaplan-Moss
Hi Mike -- Ah, it looks like my strategy of "wait for someone else to reply and hope that he sums up my feelings so that I don't have to bother" has worked perfectly. Thanks, Russ! [IOW: I agree completely with Russ.] I'll be digging into this patch in some detail, but based on what I've seen s

ANNOUNCE:- ibm_db_django-0.1.2 IBM Dataservers backend support for Django 1.1 Released

2009-08-06 Thread Tarun Pasrija
IBM_DB_DJANGO-0.1.2 --- IBM_DB_DJANGO adaptor enables access to IBM databases from Django applications http://www.djangoproject.com/. The adaptor is developed and maintained by IBM. What's New? We are pleased to announce the release of ibm_db_

Re: I need a pony: Model translations (aka "my proposal")

2009-08-06 Thread veena
I think if it'd be possible to have only this syntax: from django.contrib.translations import translation translation.register(SomeObj, ['foo']) Veena On Aug 4, 9:45 pm, veena wrote: > Hi David, > I read your first post now. Then I think it could be great solution if > it's possible to be i

Re: Template Caching

2009-08-06 Thread Russell Keith-Magee
On Thu, Aug 6, 2009 at 5:24 AM, Mike Malone wrote: > Hey everyone, > > I've been working on a patch for Django that would allow you to optionally > cache templates after they've been lexed and parsed (compiled) by the > template engine. I've got things far enough along that I have a working > impl