On Wed, 05 Sep 2007 14:40:41 +0200, Marcin wrote:
>
>
> Has anybody tried merging pylons techniques with twisted?
> In general it should be possible as twisted contains WSGI
> container...
http://twistedmatrix.com/trac/wiki/WebDevelopmentWithTwisted#IwantacontainerformyWSGIapplication
.tac for your WSGI app will look like
--------
from twisted.application import service, strports
from twisted.web2 import wsgi, channel, server
# your WSGI app
from authkit.authenticate import sample_app
application = service.Application('Twisted WSGI Container')
wsgi_site = server.Site(wsgi.WSGIResource(sample_app))
wsgi_httpd = strports.service('tcp:8080',
channel.HTTPFactory(wsgi_site))
wsgi_httpd.setServiceParent(application)
--------
But this is only deployment techinque, there is no standard way to use
Pylons stuff from twisted app and vice versa.
--
wbr, Yury Yurevich
http://www.pyobject.ru
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---