Re: [Twisted-Python] running several services from a single app

2011-03-31 Thread Jeroen van Veen
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. >

Re: [Twisted-Python] running several services from a single app

2011-03-31 Thread Jasper St. Pierre
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

Re: [Twisted-Python] running several services from a single app

2011-03-31 Thread Aljoša Mohorović
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

Re: [Twisted-Python] running several services from a single app

2011-03-31 Thread Aljoša Mohorović
everything is working, thanks. Aljosa ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] running several services from a single app

2011-03-29 Thread Tim Allen
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

Re: [Twisted-Python] running several services from a single app

2011-03-29 Thread Kevin Horn
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 >

Re: [Twisted-Python] running several services from a single app

2011-03-29 Thread Aljoša Mohorović
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

Re: [Twisted-Python] running several services from a single app

2011-03-28 Thread Michael Thompson
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,

Re: [Twisted-Python] running several services from a single app

2011-03-28 Thread Allen Short
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