I've done something simular in
https://github.com/phrearch/hwios/blob/master/services/web_ui/service.py
Probably not the best example, but works for me.
kind regards,
Jeroen
On Thursday, March 31, 2011 08:45:49 AM Aljoša Mohorović wrote:
> now i looking at adding an wsgi app to this setup.
>
The factory for twisted.web.resource Resources is twisted.web.server.Site
On Thu, Mar 31, 2011 at 4:45 AM, Aljoša Mohorović <
aljosa.mohoro...@gmail.com> wrote:
> now i looking at adding an wsgi app to this setup.
> i'm reading
> http://twistedmatrix.com/documents/current/web/howto/web-in-60/wsgi
now i looking at adding an wsgi app to this setup.
i'm reading
http://twistedmatrix.com/documents/current/web/howto/web-in-60/wsgi.html
but can't figure out howto get factory for wsgi if i have:
===
def application(environ, start_response):
start_response('200 OK', [('Content-type', 'text/pla
everything is working, thanks.
Aljosa
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Tue, Mar 29, 2011 at 09:46:11AM +0200, Aljoša Mohorović wrote:
> is there a way to tell reactor to run application and services defined
> so i can skip .tac file and just execute python file?
> maybe something similar to this:
>
> application = service.Ap
On Tue, Mar 29, 2011 at 2:46 AM, Aljoša Mohorović <
aljosa.mohoro...@gmail.com> wrote:
> On Mon, Mar 28, 2011 at 7:44 PM, Allen Short
> wrote:
> > Get rid of 'application1' and 'application2' and just create a single one
> > named 'application' , delete the last three lines, and this code will
>
On Mon, Mar 28, 2011 at 7:44 PM, Allen Short wrote:
> Get rid of 'application1' and 'application2' and just create a single one
> named 'application' , delete the last three lines, and this code will work
> just fine as a .tac file. You only need one call to 'Application' per
is it possible to se
On 28 March 2011 16:29, Aljoša Mohorović wrote:
> is it possible to run several services from a single app?
yes see
http://twistedmatrix.com/documents/current/core/howto/application.html
and
http://twistedmatrix.com/documents/current/api/twisted.application.service.MultiService.html
Regards,
On Mon, Mar 28, 2011 at 8:29 AM, Aljoša Mohorović <
aljosa.mohoro...@gmail.com> wrote:
> is it possible to run several services from a single app?
> i currently have a few services/apps and would like to put them all
> into a single app so i can use cx_freeze to create a single exe file
> for wind