A little change to wsgi.py for PUT method .

2006-12-04 Thread yi huang
I found that in django development server , the data posted with PUT method can't be accessed using request.POST . While it's ok with apache ! So I made a little change to django/core/handlers/wsgi.py , I've changed line 110 to : if self.method in ['POST', 'PUT']: Maybe we should change

Feature request for newforms: HTML 4

2006-12-04 Thread James Bennett
So I've been poking around in the newforms code, and it appears that the pre-defined widgets will be producing XHTML-style output. Now, I'm pretty picky about my markup, and I'm certainly willing to go to unusual lengths to get it just the way I want it, but it'd be awfully nice if there were

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-04 Thread Jacob Kaplan-Moss
On 12/4/06 3:30 PM, DavidA wrote: > I think it quickly gets more complicated than that syntax would > support. Oh, of *course* it does -- that's why I want to discuss it more! I think, though, that we should be able to find a 80/20 point for aggregates and support most of the common use

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-04 Thread DavidA
Jacob Kaplan-Moss wrote: > No, I think not -- I think that syntax (``queryset.groupby(field).max()``) > actually looks like the best proposal for aggregates I've seen thus far... > > Thoughts, anyone? > > Jacob I think it quickly gets more complicated than that syntax would support. For

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-04 Thread Jacob Kaplan-Moss
On 12/4/06 5:57 AM, John Lenton wrote: > The "max", "min" and other such functions might be a little more > problematic, unless groupby returned, rather than a generic iterator, > a special "queryset group" and give _it_ the max/min/etc methods. This > way it would be clear that max() returns a

Re: Re: Default representation of a Form

2006-12-04 Thread Lakin Wecker
as_dl() gets a +1 from me. I've used definition lists for forms and prefer it over tables. :) Lakin On 12/1/06, James Bennett <[EMAIL PROTECTED]> wrote: > > > On 12/1/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > I agree that laying out a form with CSS is not a very clean thing. But > > it

proposal and patch: original_filename with FileField and ImageField

2006-12-04 Thread tsuyuki makoto
Hello django developers. Currently, FIleField and ImageField store file-system-safe file name. Imagine, if user upload a file named é.txt. Yes, File-system-safe file name is .txt or _.txt. It's not special case in Japan. I know Django says non dynamic contents should be served via apache-ish