Re: 1.0 Feature List Comments

2008-03-23 Thread David Cramer
Hey, why am I wrong? :( Instance caching isn't psychic, it just says "this foreign key was queried for, use the hashtable". Do you want me to say for m in instances: m.foreign = my_already_queried_value just so I can use it in templates? If Im referencing this in a view, sure, I'll use the prebui

Re: Recent test breakage on Windows

2008-03-23 Thread Nick
On Mar 23, 3:37 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > That was my first instinct too, then I had to re-discover (for the > umpteenth time!) that normpath does not normalize a path to make it the > same across Python implementations: it normalizes the path to make it > right for the platf

Re: Aggregates

2008-03-23 Thread David Cramer
So we're not going to support group by at all, even though is extremely simple? I don't understand why everyone says mine (and Curse's and many other peoples) use of SQL is so uncommon. I'd guarantee almost every developer and I know who writes any kind of scalable code (and I've seen what they've

Re: Aggregates

2008-03-23 Thread David Cramer
Sorry -- I missed page 2. So GROUP BY and similar things will be supported through an Aggregates base class? On Mar 18, 6:36 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 19, 2008 at 9:26 AM, Justin Fagnani > > <[EMAIL PROTECTED]> wrote: > > Hey Nicolas, > > > It seems to be

Porting Django to Python 3.0

2008-03-23 Thread Martin v . Löwis
At the PyCon sprint, I started porting Django to Python 3.0. In the process, I had to make a number of changes to Python, so this port currently requires the Python 3.0 subversion head (soon to be released as 3.0a4). This port is just a start; it runs the tutorial with the sqlite3 backend, includ

Re: Aggregates

2008-03-23 Thread Justin Fagnani
On Sun, Mar 23, 2008 at 12:23 PM, Winsley von Spee <[EMAIL PROTECTED]> wrote: > perhaps I've just read over it, but how to you plan to handle not > numeric types like datetime? In mysql you have to use something like > "FROM_UNIXTIME(AVG(UNIX_TIMESTAMP(today))", but how should that be > handled in

Re: Recent test breakage on Windows

2008-03-23 Thread Ned Batchelder
I'm not familiar with PyUnit. How would it be easier? --Ned. Nick wrote: > On Mar 23, 3:37 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > >> That was my first instinct too, then I had to re-discover (for the >> umpteenth time!) that normpath does not normalize a path to make it the >> same a

Re: Aggregates

2008-03-23 Thread Justin Fagnani
Hey David, Right now sql.Query doesn't output the HAVING clause, but if it did I think you could do this with a custom filter with an add_to_query() method that calls setup_joins and appends to query.having. Also, with annotate() but without group_by(), as proposed, your query look like: >>> MyMod

Re: Porting Django to Python 3.0

2008-03-23 Thread Malcolm Tredinnick
On Sun, 2008-03-23 at 16:49 -0700, Martin v. Löwis wrote: > At the PyCon sprint, I started porting Django to Python 3.0. In the > process, I had to make a number of changes to Python, so this port > currently requires the Python 3.0 subversion head (soon to be released > as 3.0a4). > > This port

Re: Recent test breakage on Windows

2008-03-23 Thread Malcolm Tredinnick
On Sun, 2008-03-23 at 11:15 -0400, Ned Batchelder wrote: [...] > Here's one of the tests in question: > > >>> f = forms.FilePathField(path=path) > >>> f.choices.sort() > >>> f.choices > [('.../django/newforms/__init__.py', '__init__.py'), > ('.../django/newforms/__init__.pyc', '__init__.pyc'