durusmail: qp: Twisted - Was: Re: Quixote, QP, the future...?
Twisted - Was: Re: Quixote, QP, the future...?
2006-04-09
2006-04-09
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-10
2006-04-12
2006-04-12
2006-04-13
2006-04-13
2006-04-13
2006-04-13
2006-04-14
2006-04-14
2006-04-15
2006-04-16
2006-04-16
Twisted - Was: Re: Quixote, QP, the future...?
David Binger
2006-04-10
On Apr 10, 2006, at 4:01 PM, David K. Hess wrote:

> How about a combination of both approaches? I would create
> TwistedSite which is a subclass of Site. TwistedSite would have a
> standalone() method that defaults to returning True which results
> in a reactor.run() call when start_web is invoked and results in
> overall "QP is the application" behavior. Combined with the
> __class__ hook you suggest above, this makes the general twisted
> case manageable from bin/qp and very simple for users to accomplish.

I think run_web() should just do what the name implies.
Having an additional not-really switch doesn't seem
clearer to me.

I think we have a way to handle the general case, and a
way to handle your unusual case, so it seems like we should
be happy.

reply