Re: Changeset 5933 is causing breakage

2007-08-18 Thread oggie rob
> Ramiro Morales reported a similar thing in #5204. My fault; I'll have a > look at it. It's my fault, too! I'll remember to look through comments next time I write the "too simple" patch. -rob --~--~-~--~~~---~--~~ You received this message because you are sub

Re: Changeset 5933 is causing breakage

2007-08-18 Thread Russell Keith-Magee
On 8/19/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > Should be fixed in [5934] (begging forgiveness from Russell for moving > in almost the opposite direction to where he wanted to go). As much as I'd like to maintain purity, I'm pragmatic enough to accept the reasoning you give. I won't

Re: Changeset 5933 is causing breakage

2007-08-18 Thread [EMAIL PROTECTED]
Thanks for the quick turnaround. -Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this gr

Re: Changeset 5933 is causing breakage

2007-08-18 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 12:54 +1000, Malcolm Tredinnick wrote: > On Sun, 2007-08-19 at 01:36 +, [EMAIL PROTECTED] wrote: > > I noticed that Nesh's thumbnails started breaking after I updated to > > 5933. I'm not sure if this is a Django bug or if Nesh is doing > > something wrong. > > Ramiro M

Re: Changeset 5933 is causing breakage

2007-08-18 Thread Malcolm Tredinnick
On Sun, 2007-08-19 at 01:36 +, [EMAIL PROTECTED] wrote: > I noticed that Nesh's thumbnails started breaking after I updated to > 5933. I'm not sure if this is a Django bug or if Nesh is doing > something wrong. Ramiro Morales reported a similar thing in #5204. My fault; I'll have a look at i

Re: Unhandled exception if object with existing unique key saved

2007-08-18 Thread Malcolm Tredinnick
On Sat, 2007-08-18 at 21:31 -0500, James Bennett wrote: > On 8/18/07, Szekeres István <[EMAIL PROTECTED]> wrote: > > In [5]: u=User() > > I think it is a problem that this is > > - not mentioned in the documentation > > - not handled anywhere in django code. > > This is what the forms and validat

Re: Unhandled exception if object with existing unique key saved

2007-08-18 Thread James Bennett
On 8/18/07, Szekeres István <[EMAIL PROTECTED]> wrote: > In [5]: u=User() > I think it is a problem that this is > - not mentioned in the documentation > - not handled anywhere in django code. This is what the forms and validation systems are for -- to enable you to validate data before trying to

Changeset 5933 is causing breakage

2007-08-18 Thread [EMAIL PROTECTED]
I noticed that Nesh's thumbnails started breaking after I updated to 5933. I'm not sure if this is a Django bug or if Nesh is doing something wrong. I put some debugging code in base.py: # First, try an UPDATE. If that doesn't update anything, do an INSERT. pk_val = self._get_pk_val()

Unhandled exception if object with existing unique key saved

2007-08-18 Thread Szekeres István
Hello, if we save an object that has an already existing value in a unique field, an exception is thrown: In [5]: u=User() In [6]: u.username="xxx" In [7]: u.save() In [8]: u=User() In [9]: u.username="xxx" In [10]: u.save() : column username is not unique I think it is a problem that this is

Re: Merge in django book documentation?

2007-08-18 Thread Jacob Kaplan-Moss
On 8/18/07, Simon Greenhill <[EMAIL PROTECTED]> wrote: > What's the plan (or should I say legalities) about merging in the > djangobook info into the django docs? #3483 has an attempt at adding > info about the AUTH_PROFILE_MODULE which is largely taken from the > book. Is it ok (==legal) to do th

Merge in django book documentation?

2007-08-18 Thread Simon Greenhill
Hi guys, or more specifically Jacob and Adrian, What's the plan (or should I say legalities) about merging in the djangobook info into the django docs? #3483 has an attempt at adding info about the AUTH_PROFILE_MODULE which is largely taken from the book. Is it ok (==legal) to do this, or should

Re: suggestion about {% url %}

2007-08-18 Thread !张沈鹏(电子科大 08年毕业)
Oh , sorry for not know the similar issue has been discuessed before. Because my english very very poor :) , so I alway try to read and write as little as I can . Thanks for you pay attention to read my posting and reply it . You are a good man . I think passing a variable to url is useful when

Re: suggestion about {% url %}

2007-08-18 Thread Malcolm Tredinnick
On Sat, 2007-08-18 at 18:03 +0800, !张沈鹏(电子科大 08年毕业) wrote: > In a word , if {% url urlname %} could not find the urlname in url > patterns , it will try to find context[urlname] in patterns. Aah ... so an attempt to allow variables in the URL tag. Okay. Now I understand what you're trying to do.

Re: suggestion about {% url %}

2007-08-18 Thread !张沈鹏(电子科大 08年毕业)
In a word , if {% url urlname %} could not find the urlname in url patterns , it will try to find context[urlname] in patterns. 2007/8/18, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > On Sat, 2007-08-18 at 09:22 +0800, !张沈鹏(电子科大 08年毕业) wrote: > > Look at this , > > > > http://www.djangosnippets.or