Re: Strip Whitespace Middleware

2006-07-31 Thread Will McCutchen
Doug Van Horn wrote: > I wrote a little Middleware class to strip trailing and leading > whitespace from a response: I may be misunderstanding something, but doesn't your middleware actually leave whitespace at the beginning and end of the response? If response.content = '\n\n\nHello.\n\n' it is

Re: Strip Whitespace Middleware

2006-07-31 Thread Doug Van Horn
The intent is primarily to remove extra non-meaningful lines and indents from the response. As an example: {% for foo in foo_list %} {{ foo }} {% endfor %} yields before middleware: biz baz buz and after middleware: biz baz buz It's nothing special, and if I've m

[patch] manage.py: Add support for IP, IP:PORT, or PORT command-line arguments

2006-07-31 Thread jv
This patch (http://code.djangoproject.com/ticket/2461) adds support for, e.g., $ python manage.py runserver 192.168.1.150 ## if no port, then 8000 is assumed [...] $ python manage.py runserver 2552 ## if no IP address, then 127.0.0.1 is assumed [...] $ python manage.py runserver 192.168.1

[patch] Add support for IP, IP:PORT, or PORT command-line arguments

2006-07-31 Thread jv
This patch (http://code.djangoproject.com/ticket/2461) adds support for, e.g., $ python manage.py runserver 192.168.1.150 ## if no port, then 8000 is assumed [...] $ python manage.py runserver 2552 ## if no IP address, then 127.0.0.1 is assumed [...] $ python manage.py runserver 192.168.1.1

QuerySet.__or__ bug?

2006-07-31 Thread Scott Paul Robertson
I think I've found a bug when doing | (__or__) on QuerySets when or'ing with a QuerySet that filtered on a ManyToManyField. For example: The Model (Ticket): shortdesc = models.CharField(maxlength=255) desc = models.TextField() users = models.ManyToManyField(django.contrib.auth.models.User) There'

Re: QuerySet.__or__ bug?

2006-07-31 Thread Malcolm Tredinnick
Hi Scott, On Mon, 2006-07-31 at 16:54 -0700, Scott Paul Robertson wrote: > I think I've found a bug when doing | (__or__) on QuerySets when or'ing > with a QuerySet that filtered on a ManyToManyField. For example: > > The Model (Ticket): > shortdesc = models.CharField(maxlength=255) > desc = mod

a bug of admin delete funciton

2006-07-31 Thread favo
seems a bug of admin delete funciton. when a model has a many-to-many relationship, you have to has the change permission of your m2m related model even the object's m2m field is empty. in admin/view/main.py, _get_deleted_objects(), rel_objs is always true, seems it should be below:

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-31 Thread favo
I meet the same error these day, have any solution now? --~--~-~--~~~---~--~~ 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 unsubscri

Re: INSTALLED_APPS partially shown in admin with mod_python

2006-07-31 Thread Malcolm Tredinnick
Hi Kilian, On Thu, 2006-07-27 at 22:40 +0200, Kilian CAVALOTTI wrote: > On Thursday 27 July 2006 18:48, Malcolm Tredinnick wrote: > > Aargh! Can you make a ticket with these details so that we don't lose > > them, please (I have flagged this email to look at later, too). > > Sure. It's done as

Trac login broken?

2006-07-31 Thread Malcolm Tredinnick
Honestly, it just came off in my hand. I didn't do it. :-( When I try to log into Trac at the moment, I get a 500 error. Can somebody with access to the system have a look, please. Thanks, Malcolm --~--~-~--~~~---~--~~ You received this message because you are s