Re: Stripping spaces and linebreaks from blocktrans?

2007-10-31 Thread Dmitri Fedortchenko
Sounds good. I'll try to clean up the patch as much as possible when I get some time too. Right now it's a little rough around the edges. //D On 11/1/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Wed, 2007-10-31 at 19:17 +0100, Dmitri Fedortchenko wrote: > > I opened a ticket,

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-31 Thread Malcolm Tredinnick
On Wed, 2007-10-31 at 19:17 +0100, Dmitri Fedortchenko wrote: > I opened a ticket, looking forward to your input and ideas. > > http://code.djangoproject.com/ticket/5849 Thanks. I'll get to it eventually, but it might take a week or so. I'm pretty busy right at the moment and have a few other

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-31 Thread Dmitri Fedortchenko
I opened a ticket, looking forward to your input and ideas. http://code.djangoproject.com/ticket/5849 On 10/31/07, Dmitri Fedortchenko <[EMAIL PROTECTED]> wrote: > > Now that I re-read your definition, there is one difference between your > suggestion and my patch. > My patch just uses the first

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-31 Thread Dmitri Fedortchenko
Now that I re-read your definition, there is one difference between your suggestion and my patch. My patch just uses the first line to define the amount of whitespace to strip, while you suggest we use the shortest indentation in the whole block. Which is better? //D On 10/29/07, Malcolm

Re: Stripping spaces and linebreaks from blocktrans?

2007-10-31 Thread Dmitri Fedortchenko
Ok I got the patch. Should I open a ticket? I attached it, but not sure if it will get through to the mailing list. I also attached a semi-comprehensive battery of tests, showing the outcome of the stripping process. Basically it strips indentation based on the indentation of the first line of

Re: Cleaning up memcached connections

2007-10-31 Thread webjunkie
On Oct 31, 3:56 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 30-Oct-07, at 10:55 PM, webjunkie wrote: > > >> Err, what was the old version, and what's the new version? > > >> "Upgrade" is kind of vague. :-/ > > > Upgraded from 3.2.10 to 3.3.1 ;) > > which is 8 months old ;-) and still

Re: Choice lookups

2007-10-31 Thread Justin Driscoll
I prefer to store the actual value in database in many cases instead of an assigned numerical or other representation so I find myself doing this: color_choices = [(c,c) for c in ["red", "blue", "green"]] It's not a difficult work-around but I would love to see Django accept a 1 dimensional list

Earn Money by just clicking on ads

2007-10-31 Thread Aranga Wijesinghe
*My dear friends I am announcing you'll an easy way to earn money that is by just clicking on ads. So go to this link and register yourself in clixsense and start earning money. This is not a scam and this is not a misleading mail. First of all try this out and join, then you'll find that

Re: Choice lookups

2007-10-31 Thread ludvig.ericson
On Oct 30, 6:26 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > It's always bugged me a little that choice lookups are based on the raw value. Agreed, but bloating the API doesn't solve that. Oh and a tip: FOO_CHOICES = enumerate(("foo", "bar")) Throw on a tuple() if you want to use the in

Re: multi-db branch

2007-10-31 Thread Ben Ford
Hi Ed, There are a few people looking at multi-db at the moment. I've had to put my own contributions on hold because I've had rather a hectic personal life lately, but hopefully I'll be able to crack on with it next week or so. There has also been some discussion about rethinking some of the