Re: Integrating Django with Tornado's web server

2009-09-13 Thread Graham Dumpleton
On Sep 14, 8:05 am, Russell Keith-Magee wrote: > On Mon, Sep 14, 2009 at 4:30 AM, Bret Taylor wrote: > > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > > web server/framework we built at FriendFeed that we open sourced last > > week (seehttp://bret.appspot.com/entry/t

Re: Integrating Django with Tornado's web server

2009-09-13 Thread Bret Taylor
On Sep 13, 3:05 pm, Russell Keith-Magee wrote: > > I chose the WSGI approach because it is generic and applies to all > > frameworks, but Django is obviously the most widely used. I am curious > > if there is any benefit to implementing more "native" support in > > django.core.handlers or if WSGI

Re: Integrating Django with Tornado's web server

2009-09-13 Thread Russell Keith-Magee
On Mon, Sep 14, 2009 at 4:30 AM, Bret Taylor wrote: > > I am one of the authors of Tornado (http://www.tornadoweb.org/), the > web server/framework we built at FriendFeed that we open sourced last > week (see http://bret.appspot.com/entry/tornado-web-server). > > I just checked in change to Torna

Integrating Django with Tornado's web server

2009-09-13 Thread Bret Taylor
I am one of the authors of Tornado (http://www.tornadoweb.org/), the web server/framework we built at FriendFeed that we open sourced last week (see http://bret.appspot.com/entry/tornado-web-server). I just checked in change to Tornado that enables you to run any WSGI- compatible framework on Tor

Re: Replacing get_absolute_url, I am against it

2009-09-13 Thread Zachary Voase
By magic I meant magic methods; rather than creating a class and defining __str__() or __unicode__() on it, why not just use a unicode subclass? And the micro-DSL is 100% optional. All of the operator overrides are aliases to other methods, with the exception of __and__() and __or__ (), wh

Re: Replacing get_absolute_url, I am against it

2009-09-13 Thread Ivan Sagalaev
Zachary Voase wrote: > If you take a look, you’ll notice that URLObject, being a subclass of > unicode, can be used *directly* within the template and it'll render > out to the URL without any magic. Beware! Using the word "magic" too loosely may infuriate certain core devs and they will sta

Re: Replacing get_absolute_url, I am against it

2009-09-13 Thread Zachary Voase
If you take a look, you’ll notice that URLObject, being a subclass of unicode, can be used *directly* within the template and it'll render out to the URL without any magic. In addition, you can ensure that the URLObject is host-relative by doing `url.without_host()` (or {{ url.without_host

Re: Replacing get_absolute_url, I am against it

2009-09-13 Thread Ivan Sagalaev
Jacob Kaplan-Moss wrote: >>> schema, domain, path, query, fragment = urlsplit(obj.url()) > > That's not in any way intitutive for a new user in the way that > `obj.url().schema` is. After thinking of it a bit more I agree about new users. My main concern though was about not using an estab

Re: SoC merge plans?

2009-09-13 Thread Russell Keith-Magee
On Sun, Sep 13, 2009 at 1:36 AM, Alex Gaynor wrote: > > Hey! > > On Sat, Sep 12, 2009 at 6:40 AM, Jacob Kaplan-Moss wrote: >> >> Hi folks -- >> >> I'd like to start thinking about merging the SoC branches. As far as I >> can tell we've got solid, worth-merging work out of all six of 'em -- >> WO

Re: media -> admin_media Prefix Change

2009-09-13 Thread Ivan Sagalaev
drozzy wrote: > Sorry about the attitude, sometimes I think a bit too much of myself. > When do you think will get implemented? I'm not the one who decides :-). I've just raised another voice claiming that that decision may be worth reconsidering. --~--~-~--~~~---~--