Re: Decoration and aliasing

2007-11-19 Thread Gary Wilson
Jacob Kaplan-Moss wrote: > Oh yeah, and one other thing: > > IANAL, but I think the Python Software License is not compatible with > the BSD, so we'll need permission from the PSF to distribute code > copied from functools.py, and we'll need to include the original > copyright statement. Any

Re: somebody to review ticket #5247

2007-11-19 Thread Peter Baumgartner
> > I've done so rather briefly, comments on the ticket. > Ugh, I think I was asleep at the wheel there. I've uploaded a better patch. If you have time, please take a look. http://code.djangoproject.com/ticket/5247 Thanks! -- Pete --~--~-~--~~~---~--~~ You

Re: Auto-escaping patch, missed one widget

2007-11-19 Thread Malcolm Tredinnick
On Mon, 2007-11-19 at 10:29 -0800, Alberto Piai wrote: > Hello Malcolm, > > SelectDateWidget from newform extras stopped working after > autoescaping was introduced in r6671. Here is the tiny patch to fix > it. Please file any patches in Trac so that they don't get forgotten. The patch looks

Re: somebody to review ticket #5247

2007-11-19 Thread Luke Plant
On Monday 19 November 2007 18:55:49 Peter Baumgartner wrote: > Can somebody take a look at > http://code.djangoproject.com/attachment/ticket/5247/ > > I updated the existing patch to work with current svn, but I'm not > familiar enough with the internals to be sure it isn't breaking > things

Re: queries, Nones and NULLs

2007-11-19 Thread Gary Wilson Jr.
Michal Salaban wrote: > Anyway, seems that any query with field=None just doesn't make any > sense and, if used by anyone, is meant to do the same as > field__isnull=False. Wouldn't it be a good idea to convert such > queries to field__isnull=False equivalent in Model class? Correct me > if I'm

Re: using "select_related" .Does it works?

2007-11-19 Thread Michal Salaban
On Nov 19, 2007 5:28 PM, Greg_IAP <[EMAIL PROTECTED]> wrote: > db_column='instrument_id' > db_column='channel_id' You don't need this, really :) > I just want to make a join through this tables with the select_related > to be able to print Image.name, Instrument.name, Channel.name for image in

somebody to review ticket #5247

2007-11-19 Thread Peter Baumgartner
Can somebody take a look at http://code.djangoproject.com/attachment/ticket/5247/ I updated the existing patch to work with current svn, but I'm not familiar enough with the internals to be sure it isn't breaking things elsewhere. Thanks! -- Pete

Auto-escaping patch, missed one widget

2007-11-19 Thread Alberto Piai
Hello Malcolm, SelectDateWidget from newform extras stopped working after autoescaping was introduced in r6671. Here is the tiny patch to fix it. Regards, and thanks for the great work. Alberto Index: django/newforms/extras/widgets.py

Re: Using filters with {% trans %} tag

2007-11-19 Thread Dmitri Fedortchenko
I killed a few birds with one stone. This patch turned out to be even more interesting then I thought. As I was working on it I found a really neat way to move even more of the implementation out from the templatetag itself and into the template processor. Check it out:

Re: i18n missing feature ... continued (proposed solution for the upcoming sprint)

2007-11-19 Thread Wolfram Kriesing
Hi, I was following this thread, since I also think a solution is needed here, badly! I think Alain's initial solution is the best until now, and closest to what is needed, but true, its tooo complex. I don't have a final solution but may be one step ahead ... I know the big problem here is to

Re: using "select_related" .Does it works?

2007-11-19 Thread Greg_IAP
Hello, i have 3 classes. class Image(models.Model): name = models.CharField(max_length = 20,blank=True) instrument = models.ForeignKey(Instrument,null=True,blank= True,db_column='instrument_id') channel = models.ForeignKey(Channel,null=True,blank=

queries, Nones and NULLs

2007-11-19 Thread Michal Salaban
Hi all, I ran into troubles yesterday with a piece of code which had to find duplicate entries in the database: duplicates = Foo.objects.exclude(id=self.id).filter(bar=self.bar) which of course works as expected UNLESS called in freshly created instance, where self.id is None. Few seconds

Re: using "select_related" .Does it works?

2007-11-19 Thread James Bennett
On 11/19/07, Greg_IAP <[EMAIL PROTECTED]> wrote: > Does someone could explain to me how to make it work? > several examples on the net show that it doesn't... You're going to need to ask a more specific question here; "I read somewhere that X didn't work" is pretty useless as questions go.

using "select_related" .Does it works?

2007-11-19 Thread Greg_IAP
Hello, i'm trying to understand how the method "select_related" works and it doesn't seems to... Does someone could explain to me how to make it work? several examples on the net show that it doesn't... help needed please thanks in advance Greg

Re: Signal-based cache invalidation & cached function decorator

2007-11-19 Thread Sergey Kirillov
That's true. So, does it looks interesting for someone? Or I'm the only one who do signal-based cache invalidation? :) On Nov 15, 2:27 am, "Honza Král" <[EMAIL PROTECTED]> wrote: > On Nov 14, 2007 9:13 PM, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > > > > > For shared cache backends, like