Re: Running a second wsgi script from within the first wsgi script

2018-09-12 Thread tienrua
Actualy only one wsgi script can run(mean apache handler redirector), your server got "superhost.gr" name but this outer namespace(on apache.conf virtual server *:80), you need call local name for internal accessing. Replace "http://superhost.gr/clientele"; to ["h

Re: (new try) - Running a second wsgi script from within the first wsgi script

2018-09-10 Thread Alister via Python-list
On Sun, 09 Sep 2018 18:47:49 -0700, Νίκος Βέργος wrote: > I have 3 wsgi scripts listening on 3 locations. What i'm trying to run > an wsgi script from within another wsgi script with the following > statement. > > page = 'clientele' > pdata = requests.get( '

Re: Target WSGI script cannot be loaded as Python module.

2018-05-23 Thread Νίκος
Τη Τετάρτη, 23 Μαΐου 2018 - 6:18:13 μ.μ. UTC+3, ο χρήστης John Gordon έγραψε: > Is your web server using Python 2 or Python 3 to execute WSGI? I really dont knwo that detail. How can i check that? -- https://mail.python.org/mailman/listinfo/python-list

Re: Target WSGI script cannot be loaded as Python module.

2018-05-23 Thread John Gordon
led successfully. Is your web server using Python 2 or Python 3 to execute WSGI? -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies&quo

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Τη Τρίτη, 22 Μαΐου 2018 - 10:55:54 μ.μ. UTC+3, ο χρήστης Alexandre Brault > > Any ideas as to why iam getting the above error although i have python36 > > isntalled along with all modules? why can it find it? > How did you install geoip2? Was it by any chance in a virtual > environment? If it was

Re: Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Alexandre Brault
On 2018-05-22 02:29 PM, Νίκος wrote: > Hello all, > > Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the > follwing eroor. > > === > [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [c

Target WSGI script cannot be loaded as Python module.

2018-05-22 Thread Νίκος
Hello all, Iam tryign to run a bootle script iw rote as wsgi app and iam gettign the follwing eroor. === [Tue May 22 06:49:45.763808 2018] [:error] [pid 24298] [client 46.103.59.37:14500] mod_wsgi (pid=24298): Target WSGI script

Re: Understanding WSGI together with Apache

2015-10-12 Thread Carl Meyer
le to parse a date. When looking why this > fails, the string looks like de_DE's "Sa, 10 Okt 2015" instead of C's > "Sat, 10 Oct 2015". This seems to happen depending on which worker > thread is currently serving the request, i.e. nondeterministically. > >

Re: Understanding WSGI together with Apache

2015-10-11 Thread Peter Otten
Johannes Bauer wrote: > I'm seeing some weird crosstalk between them which I do not understand. > In particular, crosstalk concerning the locales of the two. One > application needs to output, e.g., date information using a German > locale. It uses locale.setlocale to set its LC_ALL to de_DE.UTF-8

Re: Understanding WSGI together with Apache

2015-10-10 Thread dieter
ion. The "locale" implementation does not expect different "locale"s in the same process (this is true not only on the Python but also on the "C" level). Thus, if in a single process, two concurrent activities (i.e. threads) need different "locale"s, you are in

Understanding WSGI together with Apache

2015-10-10 Thread Johannes Bauer
ad of C's "Sat, 10 Oct 2015". This seems to happen depending on which worker thread is currently serving the request, i.e. nondeterministically. So all in all, this is very weird and I must admit that I don't seem to fully understand how WSGI applications are run and served within a

Good resource for pythonanywhere and WSGI

2015-08-23 Thread Cecil Westerhof
I want to host my web application on pythonanywhere so that the people of Mozilla can investigate the problem it has with this application. I do not find documentation that is useful for me. Has anyone a good resource? The application I want to deploy on pythonanywhere: https://github.com/Ceci

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread Ben Finney
John Nagle writes: > That's part of the problem of having all those forks - now > each bug has to be fixed in each fork. Agreed, there is too much focus on developing everything in isolation, too little focus on getting different libraries working together. > After all this, the production syst

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread Terry Reedy
On 3/30/2015 4:07 PM, John Nagle wrote: After all this, the production system is now running entirely on Python 3. I am really glad to read this. Aside from a bit of hyperbole, I appreciate the report of successes and difficulties. I also understand better that 'Python 3' means something d

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread John Nagle
On 3/29/2015 7:11 PM, John Nagle wrote: > Meanwhile, I've found two more variants on "flup" > > https://pypi.python.org/pypi/flipflop > https://pypi.python.org/pypi/flup6 > > All of these are descended from the original "flup" code base. > > PyPi also has > > fcgi-python (

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread Denis McMahon
On Mon, 30 Mar 2015 15:47:23 +1100, Chris Angelico wrote: > On Mon, Mar 30, 2015 at 3:35 PM, Paul Rubin > wrote: >> 2b. John, thank you for describing your experience and making the >> community's picture of the current overall state of Python 3 more >> accurate. It was apparently a bit too rosy

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread Denis McMahon
On Sun, 29 Mar 2015 11:57:54 -0700, John Nagle wrote: > The Python 2 module "fcgi" is gone in Python 3. Was this part of the python standard library, or was it a third party library? I can only find cgi documentation in the python 2 core documentatio

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-30 Thread Mark Lawrence
On 30/03/2015 02:22, Ben Finney wrote: Paul Rubin writes: He reported hitting more snags than some of us might expect purely from the Python 3 propaganda ("oh, just run the 2to3 utility and it does everything for you"). Propaganda? Are you referring to the official guidelines for migrating

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Rustom Mody
On Monday, March 30, 2015 at 10:05:37 AM UTC+5:30, Paul Rubin wrote: > 2b. John, thank you for describing your experience and making the > community's picture of the current overall state of Python 3 more > accurate. It was apparently a bit too rosy before, and we should avoid > fostering unrealis

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Chris Angelico
On Mon, Mar 30, 2015 at 3:35 PM, Paul Rubin wrote: > 2b. John, thank you for describing your experience and making the > community's picture of the current overall state of Python 3 more > accurate. It was apparently a bit too rosy before, and we should avoid > fostering unrealistic expectations

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread INADA Naoki
trated by the community's >> lack of apparent interest in fixing problems in the greater python >> ecosystem when it comes to Python 3. > > I think one could easily draw far too broad a conclusion from John's > report here. The title of the thread says "lack of support fo

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Paul Rubin
Rustom Mody writes: > On a more serious note you can (and IMHO should) orthogonalize: > 1. John I dont appreciate your tone > 2. John thank your for the bug-report Fair enough, but I'd split #2 into 2a. John, thank you for the bug report describing specific problems we can fix, bringing Python 3

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Carl Meyer
gt; lack of apparent interest in fixing problems in the greater python > ecosystem when it comes to Python 3. I think one could easily draw far too broad a conclusion from John's report here. The title of the thread says "lack of support for fcgi/wsgi", but AFAICT the content of

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Michael Torrie
On 03/29/2015 04:58 PM, Ben Finney wrote: > You have provided none for your assertion that an unmaintained > third-party library is somehow a special failure of Python 3. A language is only as good as its libraries, either the standard library that ships with the language, or third-party libraries

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Rustom Mody
On Monday, March 30, 2015 at 8:37:13 AM UTC+5:30, Chris Angelico wrote: > On Mon, Mar 30, 2015 at 1:51 PM, Paul Rubin wrote: > > One way is take reports like John's seriously and receive them > > with thanks, instead of attacking the messenger. > > If a messenger wants to be thanked, he should st

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
Chris Angelico writes: > On Mon, Mar 30, 2015 at 1:51 PM, Paul Rubin wrote: > > One way is take reports like John's seriously and receive them > > with thanks, instead of attacking the messenger. Please note that, where John Nagle has made supportible criticisms, I have thanked him for them. Th

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Chris Angelico
On Mon, Mar 30, 2015 at 1:51 PM, Paul Rubin wrote: > One way is take reports like John's seriously and receive them > with thanks, instead of attacking the messenger. If a messenger wants to be thanked, he should start by not attacking the recipients. Respect goes both ways. Make your post with a

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Paul Rubin
Ben Finney writes: > Then you're not in a position to defend the claim. I'm addressing my > critical inquiry to the person who made the claim that they “get screwed > by Python 3”. I'd say that the screw was expecting the migration to be easier than it actually was. This might result from there

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
Paul Rubin writes: > I don't know that I'd say that the language or ecosystem is > "responsible". Then you're not in a position to defend the claim. I'm addressing my critical inquiry to the person who made the claim that they “get screwed by Python 3”. -- \ “Fox News gives you both side

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
John Nagle writes: > CPAN, the Perl module archive, has some curation and testing. PyPi > lacks that, which is how we end up with situations like this, where > there are 11 ways to do something, most of which don't work. That is a valid criticism of PyPI, and more broadly of the Python distribut

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Paul Rubin
Ben Finney writes: > Which doesn't address the assertion that this is somehow a special > responsibility of “Python 3”, which I asked critical questions about. "Python 3" in those sorts of contexts refers to the whole ecosystem including the 3rd party libs. I don't know that I'd say that the lan

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread John Nagle
On 3/29/2015 6:03 PM, Paul Rubin wrote: > Those questions seem unfair to me. Nagle posted an experience report > about a real-world project to migrate a Python 2 codebase to Python 3. > He reported hitting more snags than some of us might expect purely from > the Python 3 propaganda ("oh, just run

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
Paul Rubin writes: > Ben Finney writes: > > Why are you discussing it as though Python 3 is at fault? What do you > > expect to change *about Python 3* that would address the perceived > > problem? Whose responsibility is it to do that? > > Those questions seem unfair to me. Nagle posted an exp

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Paul Rubin
Ben Finney writes: > Why are you discussing it as though Python 3 is at fault? What do you > expect to change *about Python 3* that would address the perceived > problem? Whose responsibility is it to do that? Those questions seem unfair to me. Nagle posted an experience report about a real-wor

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Jon Ribbens
> That hasn't been updated since 2007, and the SVN repository linked there > is gone. The recommended version is abandoned. pip3 > tries to install version 1.0.2, from 2009. That's here: > https://pypi.python.org/pypi/flup/1.0.2 That version is supported > only for

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
John Nagle writes: (for some reason quoting himself extensively without further comment) > On 3/29/2015 1:19 PM, John Nagle wrote: > > On 3/29/2015 12:11 PM, Ben Finney wrote: > >> John Nagle writes: > >>> The Python 3 documentation at > >>> https://docs.python.org/3/howto/webservers.html > >>>

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread John Nagle
; I disagree. In a section where it describes FastCGI, it presents a tiny >> example as a way to test the packages installed. The example happens to >> use ‘flup’. >> >> That's quite different from a recommendation. >> >>> I get the feeling, again, that no

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Mark Lawrence
On 29/03/2015 22:40, Steven D'Aprano wrote: On Mon, 30 Mar 2015 05:57 am, John Nagle wrote: https://pypi.python.org/pypi/flup/1.0 That hasn't been updated since 2007, and the SVN repository linked there is gone. The recommended version is abandoned. Welcome to the Internet. Links die and do

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Steven D'Aprano
On Mon, 30 Mar 2015 05:57 am, John Nagle wrote: > https://pypi.python.org/pypi/flup/1.0 > > That hasn't been updated since 2007, and the SVN repository linked there > is gone. The recommended version is abandoned. Welcome to the Internet. Links die and documentation gets outdated. If only thin

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Marko Rauhamaa
l, but then I get > screwed by Python 3 again. I sympathize but Python 3 is the victim here, wsgi is the culprit. Some years ago I had to write wsgi client code. I found it easiest to write the XML messages by hand and have a tiny Python script ("lather") supply the SOAP envelope han

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Ben Finney
John Nagle writes: > The Python 3 documentation at > https://docs.python.org/3/howto/webservers.html > > recommends "flup" I disagree. In a section where it describes FastCGI, it presents a tiny example as a way to test the packages installed. The example happens to use ‘flup’. That's quite dif

Re: Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread Andrew Berg
r used directly. Just like mod_python, it is only > used for the deployment of WSGI applications. > ... > The Web Server Gateway Interface, or WSGI for short, is defined in PEP 333 > and is currently the best way to do Python web programming. It seems to me that FastCGI isn't wel

Python 3 lack of support for fcgi/wsgi.

2015-03-29 Thread John Nagle
The Python 2 module "fcgi" is gone in Python 3. The Python 3 documentation at https://docs.python.org/3/howto/webservers.html recommends "flup" and links here: https://pypi.python.org/pypi/flup/1.0 That hasn't been updated since 2007, and the SVN repository linked there is gone. The recommend

Re: Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread Alexander Sh
On Wednesday, February 18, 2015 at 7:52:19 PM UTC+3, Ian wrote: > > sys.excepthook is called just before the interpreter exits due to an > exception. In a mod_wsgi environment, having the interpreter exit just > because of an exception would be undesirable. I don't know exactly > what it's doing u

Re: Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread Ian Kelly
On Wed, Feb 18, 2015 at 8:08 AM, wrote: > I want to generate an html page with http response status '200 OK' in case of > an uncaught exception in my wsgi application, instead of web server's > standard '500 Internal Server Error' response for such case. To

Assigning a function to sys.excepthook doesn't work in WSGI

2015-02-18 Thread tak . govoril
I want to generate an html page with http response status '200 OK' in case of an uncaught exception in my wsgi application, instead of web server's standard '500 Internal Server Error' response for such case. To do so, I've made the following sample code: impor

Re: Looking for volunteers developing wsgi Webmailer Application!

2014-10-04 Thread Tamer Higazi
Because the world really needs this crap that is developed in php5, or big Personal Information Management Systems like Horde, what often nobody needs. Am 04.10.2014 um 19:52 schrieb Denis McMahon: > On Sat, 04 Oct 2014 17:52:18 +0200, Tamer Higazi wrote: > >> I am planing to develop on longe

Re: Looking for volunteers developing wsgi Webmailer Application!

2014-10-04 Thread Denis McMahon
On Sat, 04 Oct 2014 17:52:18 +0200, Tamer Higazi wrote: > I am planing to develop on longer time a n open source Webmailer written > in Python (not 2.7.x) with: Because the world really needs another webmailer spamengine. -- Denis McMahon, denismfmcma...@gmail.com -- https://mail.python.org/ma

Looking for volunteers developing wsgi Webmailer Application!

2014-10-04 Thread Tamer Higazi
Hi people! I am planing to develop on longer time a n open source Webmailer written in Python (not 2.7.x) with: bottle.py zca, zope.interface Mail sasl and/or dovecot python-slimta-piperelay a wsgi webmailer which could be easily added in uWSGI. I am looking for people, who'd li

Re: Run an http server on Apache without wsgi?

2014-09-05 Thread dieter
"Frank Millman" writes: > My AccInABox project runs an http server. Previously I used the cherry.py > wsgiserver, but I have now switched to asyncio. > > I tried to use the wsgi interface, but I have a particular requirement and > found that wsgi got in the way, so I

Run an http server on Apache without wsgi?

2014-09-05 Thread Frank Millman
Hi all My AccInABox project runs an http server. Previously I used the cherry.py wsgiserver, but I have now switched to asyncio. I tried to use the wsgi interface, but I have a particular requirement and found that wsgi got in the way, so I dropped it and now handle all requests directly

Re: WSGI

2014-05-25 Thread Chris
On 05/25/2014 12:04 PM, alister wrote: > is your apache server running as root? > if so it probably should be corrected One is running as chris, the others as apache: [root@t-centos1 ~]# ps -ef|grep httpd root 1199 1 0 08:47 ?00:00:01 /usr/sbin/httpd chris 1293 1199 0 09:4

Re: WSGI (was: Re: Python CGI)

2014-05-25 Thread alister
on to tell who your script >> is running as. > > LoadModule wsgi_module modules/mod_wsgi.so AddHandler wsgi-script .wsgi > WSGIDaemonProcess myproj user=chris threads=3 > > [root@t-centos1 ~]# ps -ef|grep chris chris 1201 11

WSGI (was: Re: Python CGI)

2014-05-25 Thread Chris
gi_module modules/mod_wsgi.so AddHandler wsgi-script .wsgi WSGIDaemonProcess myproj user=chris threads=3 [root@t-centos1 ~]# ps -ef|grep chris chris 1201 1199 0 08:47 ?00:00:00 /usr/sbin/httpd ---8<--- #!/usr/bin/python import get

WSGI (was: Re: Python CGI)

2014-05-25 Thread Christian
gi_module modules/mod_wsgi.so AddHandler wsgi-script .wsgi WSGIDaemonProcess myproj user=chris threads=3 [root@t-centos1 ~]# ps -ef|grep chris chris 1201 1199 0 08:47 ?00:00:00 /usr/sbin/httpd ---8<--- #!/usr/bin/python import get

Python (?) webserver for WSGI

2014-02-09 Thread Nicholas Cole
On Sunday, 9 February 2014, Asaf Las > wrote: > On Sunday, February 9, 2014 11:05:58 PM UTC+2, Nicholas wrote: > > Dear List, > > > > > > > > What is the latest "best-practice" for deploying a python wsgi > > application into production? > &g

Re: Python (?) webserver for WSGI

2014-02-09 Thread Asaf Las
On Sunday, February 9, 2014 11:05:58 PM UTC+2, Nicholas wrote: > Dear List, > > > > What is the latest "best-practice" for deploying a python wsgi > application into production? > > For development, I've been using CherryPyWSGIServer which has been >

Python (?) webserver for WSGI

2014-02-09 Thread Nicholas Cole
Dear List, What is the latest "best-practice" for deploying a python wsgi application into production? For development, I've been using CherryPyWSGIServer which has been working very well (and the code is small enough to actually ship with my application). But I would like some w

How can I redirect or launch a html file in wsgi coding?

2013-08-15 Thread Hans
Hi, I have code like this: root@lin-ser-1:~# cat /usr/local/www/wsgi-scripts/myapp.py def application(environ, start_response): import sys ... status = '200 OK' req_method=environ['REQUEST_METHOD'] if req_method == 'POST' : json_

What web server for WSGI? Recommended book?

2013-03-27 Thread Gilles
Hello After going through multiple articles about the advantage of using WSGI instead of FastCGI + Flup to run Python web apps, I have a couple of questions: 1. Which server + WSGI module would you recommend? I know about Apache and Graham Dumpleton's mod_wsgi, but what about Lig

Re: [WSGI] Tell Python to listen to LAN interface?

2013-03-26 Thread Gilles
On Tue, 26 Mar 2013 23:50:36 +1100, Chris Angelico wrote: >According to the docstring, the first argument to make_server() is the >host name to bind to. Using "localhost" means you're bound to >127.0.0.1, as you see. Use your LAN IP address there, or "" to bind to >all local addresses - or possibl

Re: [WSGI] Tell Python to listen to LAN interface?

2013-03-26 Thread Chris Angelico
On Tue, Mar 26, 2013 at 11:26 PM, Gilles wrote: > Hello > > I'm following this tutorial to learn about writing Python apps in > WSGI: > > http://webpython.codepoint.net/wsgi_tutorial I'm guessing you're using the initialization code from here

[WSGI] Tell Python to listen to LAN interface?

2013-03-26 Thread Gilles
Hello I'm following this tutorial to learn about writing Python apps in WSGI: http://webpython.codepoint.net/wsgi_tutorial On a Linux host with Python 2.6.6 installed, I launched the "Environment dictionary" sample, but can't connect to it from my remote Windows host since

python\bluetooth / wsgi / apache 2.2

2012-12-13 Thread Barry Dick
I'm wanting to read from my bluetooth device (it just sends data/header with a checksum at the end, in a continuous mode "a biofeedback device") and I'm getting a weird error in my logs not allowing me to use multiple sockets. I guess with wsgi, I'm creating a link/mo

[WSGI] FCGID + Flup vs. mod_wsgi?

2012-09-21 Thread Gilles
talk to the Python app, but it's N.A. so that's out. As for FCGID, am I correct in understanding that this is the way things work: Apache <-> mod_fcgid <-> Flup (or some other wrapper) <-> WSGI application? www.stackoverflow.com/questions/1747266/is-there-a-speed-diff

Re: [web] Long-running process: FCGI? SCGI? WSGI?

2012-09-05 Thread Dieter Maurer
Gilles writes: > To write a long-running web application, I'd like to some feedback > about which option to choose. > > Apparently, the choice boilds down to this: > - FastCGI > - SCGI > - WSGI > > It seems like FCGI and SCGI are language-neutral, while WSGI i

[web] Long-running process: FCGI? SCGI? WSGI?

2012-09-05 Thread Gilles
Hello To write a long-running web application, I'd like to some feedback about which option to choose. Apparently, the choice boilds down to this: - FastCGI - SCGI - WSGI It seems like FCGI and SCGI are language-neutral, while WSGI is Python-specific. Besides that, how to make an inf

Re: wsgi, ajax, and multiple requests

2011-02-09 Thread Frank Millman
Frank Millman wrote: Hi all I have a question about wsgi. As far as I can tell from the spec and from the reference implementation, wsgi requires that each request from the client is responded to by one or more headers, followed by the response body. It is then ready to handle the next

Re: wsgi, ajax, and multiple requests

2011-02-09 Thread Paul Rubin
"Frank Millman" writes: > So the question is, how can I achieve this with wsgi? If I detect that > I have received a request out of sequence, I can queue the request, > and send an empty response. I don't see how that can help, on the server side. Even if you send th

Re: wsgi, ajax, and multiple requests

2011-02-09 Thread Adam Tauno Williams
headers used by HTTP (and especially WebDAV). > So the question is, how can I achieve this with wsgi? If I detect that I > have received a request out of sequence, I can queue the request, and send > an empty response. When I receive the correct request, I can process it, > call start

wsgi, ajax, and multiple requests

2011-02-09 Thread Frank Millman
Hi all I have a question about wsgi. As far as I can tell from the spec and from the reference implementation, wsgi requires that each request from the client is responded to by one or more headers, followed by the response body. It is then ready to handle the next request. 99% of the time

Re: Wing in mod_python vs wsgi?

2011-02-08 Thread Doug Epling
I don't know about your IDE, I am using the default IDLE just because it is handy. But I have made the switch from mod_python. It was a good idea, but mod_wsgi is a better idea. And as you know, mod_python is no longer supported. I am running Apache with mod_wsgi in a windows 7 environment

Wing in mod_python vs wsgi?

2011-02-08 Thread Tom Stambaugh
I'm still using mod_python to deploy my framework for production (CentOS running Python 2.5.5, Apache 2.2.3, mod_python 3.3.1). I'm acutely aware of how elderly mod_python is, and I've had some frustrations using Wing to debug inside it -- at least its possible, which is not true for any other

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-02-01 Thread Gelonida
On 02/01/2011 11:36 PM, Jean-Paul Calderone wrote: >> >>> twistd -n web --port --wsgi >> >> >> The problem is rather simple. The host in question is not 100% under my >> control. I can request to have packages installed if they're in the list &

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-02-01 Thread Jean-Paul Calderone
On Feb 1, 2:01 pm, Gelonida wrote: > On 02/01/2011 03:07 AM, Jean-Paul Calderone wrote: > > > > > On Jan 31, 5:28 pm, Gelonida wrote: > >> Hi, > > >> Normally I use following code snippet to quickly test a wsgi module > >> wit

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-02-01 Thread Gelonida
On 02/01/2011 03:07 AM, Jean-Paul Calderone wrote: > On Jan 31, 5:28 pm, Gelonida wrote: >> Hi, >> >> Normally I use following code snippet to quickly test a wsgi module >> without a web server. >> >> import wsgi_lib.server >> wsgi_lib.server.run(appli

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-01-31 Thread Jean-Paul Calderone
On Jan 31, 5:28 pm, Gelonida wrote: > Hi, > > Normally I use following code snippet to quickly test a wsgi module > without a web server. > > import wsgi_lib.server > wsgi_lib.server.run(application, port=port) > > However Now I'd like to test a small wsgi module

simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-01-31 Thread Gelonida
Hi, Normally I use following code snippet to quickly test a wsgi module without a web server. import wsgi_lib.server wsgi_lib.server.run(application, port=port) However Now I'd like to test a small wsgi module on a rather old host ( Python 2.4.3 ) where I don't have means to update p

Re: Streaming templating languages for use as WSGI body.

2011-01-07 Thread Alice Bevan–McGregor
On 2011-01-07 07:17:33 -0800, Michael Ströder said: As I read section 7.2.2 (Length) the Content-length header is only required in HTTP *requests* if the body contains data. According to the text it's not required in HTTP *responses*. You are correct; I mis-read that section in my haste.

Re: Streaming templating languages for use as WSGI body.

2011-01-07 Thread Michael Ströder
Alice Bevan–McGregor wrote: > On 2011-01-06 11:11:27 -0800, Adam Tauno Williams said: >> On Thu, 2011-01-06 at 11:07 -0800, Alice Bevan–McGregor wrote: >>> On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: >>>> With HTTP/1.0 [and WSGI is HTTP/1.0 only] you

Re: Streaming templating languages for use as WSGI body.

2011-01-06 Thread Alice Bevan–McGregor
On 2011-01-06 11:11:27 -0800, Adam Tauno Williams said: On Thu, 2011-01-06 at 11:07 -0800, Alice Bevan–McGregor wrote: On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a Content-Length header - so you have to generate the

Re: Streaming templating languages for use as WSGI body.

2011-01-06 Thread Adam Tauno Williams
On Thu, 2011-01-06 at 11:07 -0800, Alice Bevan–McGregor wrote: > On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: > > > With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a > > Content-Length header - so you have to generate the entire response at > > o

Re: Streaming templating languages for use as WSGI body.

2011-01-06 Thread Alice Bevan–McGregor
On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a Content-Length header - so you have to generate the entire response at once [however you want to muddy "at once"]. Both of these statements are false. Streaming

Re: Streaming templating languages for use as WSGI body.

2011-01-06 Thread Adam Tauno Williams
On Wed, 2011-01-05 at 14:56 -0800, Alice Bevan–McGregor wrote: > Howdy! > I'm trying to find a templating engine whose templates can be consumed > directly as a WSGI response body iterable. So far I haven't been very > successful with Google; the engines I've f

Re: Streaming templating languages for use as WSGI body.

2011-01-05 Thread Alice Bevan–McGregor
Not sure if it's bad form to respond to your own posts, but here goes. ;) Coding up a quick hack of a templating engine, I've produced this: http://pastie.textmate.org/private/ws5jbeh1xyeaqtrhahevqw (The implementation of the engine itself is a base class that overrides __call__ and __getit

Streaming templating languages for use as WSGI body.

2011-01-05 Thread Alice Bevan–McGregor
Howdy! I'm trying to find a templating engine whose templates can be consumed directly as a WSGI response body iterable. So far I haven't been very successful with Google; the engines I've found universally generate a monolithic rendered string. Bonus points for templati

Re: Added Python, WSGI to XAMPP

2010-12-18 Thread Gerry Reno
On 12/17/2010 02:36 PM, Daniel Fetchinson wrote: >>>>>> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >>>>>> <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42981> >>>> >>>> Maybe, if there's no Zop

Re: Added Python, WSGI to XAMPP

2010-12-17 Thread Daniel Fetchinson
>>>>> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >>>>> <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42981> >>> >>> Maybe, if there's no Zope. Or we'll run away screaming... >> >> That is rathe

Re: Added Python, WSGI to XAMPP

2010-12-16 Thread Gerry Reno
On 12/16/2010 04:36 AM, Octavian Rasnita wrote: > From: "Ian Kelly" > > On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > >> The VIEW is the bits that stream out of the webserver back to the users >> browser. >> > Why only to the user's browser? A web app could also offer the results

Re: Added Python, WSGI to XAMPP

2010-12-16 Thread Octavian Rasnita
From: "Ian Kelly" On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > The VIEW is the bits that stream out of the webserver back to the users > browser. Why only to the user's browser? A web app could also offer the results in formats that can be accessed with something else than a browser.

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Gerry Reno
On 12/15/2010 07:36 PM, Ian Kelly wrote: > On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > >> The VIEW is the bits that stream out of the webserver back to the users >> browser. The CONTROLLER is the code that gathers all the pieces from >> the model and constructs the python code that is

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Ian Kelly
On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > The VIEW is the bits that stream out of the webserver back to the users > browser.  The CONTROLLER is the code that gathers all the pieces from > the model and constructs the python code that is then fed to the engine > that then creates the vie

Pyramid and MVC (split from: Re: Added Python, WSGI to XAMPP)

2010-12-15 Thread Gerry Reno
On 12/15/2010 05:03 PM, Chris Withers wrote: > On 14/12/2010 00:58, Gerry Reno wrote: >> What I really don't like right off is that Pyramid is contorting the MVC >> model > > That specific pattern, I'm afraid, is a little antiquated nowadays, > particularly when it comes to web apps... > >> The VIE

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Chris Withers
On 14/12/2010 00:58, Gerry Reno wrote: What I really don't like right off is that Pyramid is contorting the MVC model That specific pattern, I'm afraid, is a little antiquated nowadays, particularly when it comes to web apps... The VIEW is the bits that stream out of the webserver back to t

Re: optparse/argparse for cgi/wsgi?

2010-12-14 Thread Joost Molenaar
To aid your googling, the problem is also commonly called 'Dispatching' instead of 'Routing'. Joost On 14 December 2010 12:19, Joost Molenaar wrote: > Many people have. :-) > > In the context of WSGI you're basically talking about routing > middlewar

Re: optparse/argparse for cgi/wsgi?

2010-12-14 Thread Joost Molenaar
Many people have. :-) In the context of WSGI you're basically talking about routing middleware, which solves the problem: "given a request, which application should be called to construct a response?" In my case, it turned out as simple as a list of (regex, resource) tuples, w

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 11:13 PM, rusi wrote: > On Dec 10, 2:29 am, Gerry Reno wrote: > >> If you have any need of a portable LAMP stack, I just finished writing >> some How-To's for getting Python, VirtualEnv and WSGI frameworks running >> with XAMPP: >> >>

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread rusi
On Dec 10, 2:29 am, Gerry Reno wrote: > If you have any need of a portable LAMP stack, I just finished writing > some How-To's for getting Python, VirtualEnv and WSGI frameworks running > with XAMPP: > > How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP > <http

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 07:12 PM, Chris Withers wrote: > On 14/12/2010 00:14, Gerry Reno wrote: >> On 12/13/2010 06:34 PM, Chris Withers wrote: >>> On 09/12/2010 21:29, Gerry Reno wrote: >>>> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >>>> <http

Re: Added Python, WSGI to XAMPP

2010-12-13 Thread Gerry Reno
On 12/13/2010 06:34 PM, Chris Withers wrote: > On 09/12/2010 21:29, Gerry Reno wrote: >> How-To: Add VirtualEnv and Pylons (WSGI framework) to XAMPP >> <http://www.apachefriends.org/f/viewtopic.php?f=17&t=42981> > > You mean Pyramid, right? ;-) > > Chris >

  1   2   3   4   >