Re: Rethinking silent failures in templates

2008-05-17 Thread James Bennett
On Wed, May 14, 2008 at 8:58 AM, Simon Willison <[EMAIL PROTECTED]> wrote: > Silent errors are bad. If we were to remove them, how much of a > negative impact would it have on the existing user base? The impression I get is that a lot of people rely on silent *variable* failure, but very few

Re: Patch #7521: Template if/ifequal/ifnotequal evaluate despite condition

2008-05-17 Thread Honza Král
On Sun, May 18, 2008 at 12:23 AM, Joshua 'jag' Ginsberg <[EMAIL PROTECTED]> wrote: > > Agreed. However, I don't believe loading a non-existent library should > be a syntax error any more than accessing a non-existent key in a > dictionary. but you need to load the library at parsing time to

Re: Patch #7521: Template if/ifequal/ifnotequal evaluate despite condition

2008-05-17 Thread Joshua 'jag' Ginsberg
And forgive my mistyping -- #7251, not #7521. -jag On Sat, May 17, 2008 at 6:23 PM, Joshua 'jag' Ginsberg <[EMAIL PROTECTED]> wrote: > Agreed. However, I don't believe loading a non-existent library should > be a syntax error any more than accessing a non-existent key in a > dictionary. > >

Re: Patch #7521: Template if/ifequal/ifnotequal evaluate despite condition

2008-05-17 Thread Joshua 'jag' Ginsberg
Agreed. However, I don't believe loading a non-existent library should be a syntax error any more than accessing a non-existent key in a dictionary. -jag On Fri, May 16, 2008 at 5:01 PM, Honza Král <[EMAIL PROTECTED]> wrote: > But python also PARSES both branches of the given expression, so if

Re: Multi-Table Inheritance and fixtures

2008-05-17 Thread AmanKow
On May 15, 6:15 pm, "Ziling Zhao" <[EMAIL PROTECTED]> wrote: > So, are you suggesting that on fixture loading that parents should *not* be > saved? > > Would this possibly allow you to load fixtures that don't fit in your model? > E.g. children without parents? No, what I'm suggesting is that

Re: Manager-model reassignment on abstract subclassing

2008-05-17 Thread Thejaswi Puthraya
On May 17, 10:57 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > There's a similar ticket to this at 7154  (http:// > > code.djangoproject.com/ticket/7154). It has a patch that works but I > > am not sure if it is the most elegant method. > > Whoops!  Sounds like we're talking about the

Re: Rethinking silent failures in templates

2008-05-17 Thread Peter Rowell
Personally, I prefer fireworks when a variable is not set. Here's yet another possibility, just a variant on current code: TEMPLATE_STRING_IF_INVALID = "% (expression)s: %(error)s" The above would be filled in by _resolve_lookup with appropriate values. Then you have a style: template-var-error

Re: Add optional FOR UPDATE clause to QuerySets

2008-05-17 Thread Sebastian Bauer
Russell Keith-Magee pisze: > On Sat, May 17, 2008 at 3:56 AM, Sebastian Bauer <[EMAIL PROTECTED]> wrote: > >> could someone tell me when this ticket will be add to trunk: >> >> http://code.djangoproject.com/ticket/2705 >> >> its very important to me because im writing game and i need this to

Re: Weird behavior with SMTP connections

2008-05-17 Thread Yuri Baburov
Hi, Florian Actually, I'm afraid you haven't got a change to look under a cover yet. Use The Source, Luke! self.connection = smtplib.SMTP(self.host, self.port, local_hostname=DNS_NAME.get_fqdn()) where self.host = host or

Re: Weird behavior with SMTP connections

2008-05-17 Thread Russell Keith-Magee
On Sat, May 17, 2008 at 4:07 PM, Florian Lindner <[EMAIL PROTECTED]> wrote: > > Well, really noboby interested in confirming or denying this behavior? Of course not. We _like_ having buggy software. Ignoring questions like yours is how we amuse ourselves. Please keep in mind that this is a

Re: Add optional FOR UPDATE clause to QuerySets

2008-05-17 Thread Russell Keith-Magee
On Sat, May 17, 2008 at 3:56 AM, Sebastian Bauer <[EMAIL PROTECTED]> wrote: > > could someone tell me when this ticket will be add to trunk: > > http://code.djangoproject.com/ticket/2705 > > its very important to me because im writing game and i need this to finish There is no simple answer to

Re: Weird behavior with SMTP connections

2008-05-17 Thread Florian Lindner
Well, really noboby interested in confirming or denying this behavior? Am 14.05.2008 um 20:00 schrieb Florian Lindner: > > Hello, > > I'm experiencing some odd behavior with SMTP connections and the > functions to send mail. > > The relevant settings in my settings.py: > > ADMINS = ( >