[web2py] Re: Problem with Web2py sql that includes % on Postgres; breaking New Relic

2011-12-15 Thread Graham Dumpleton
On Dec 16, 7:13 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I disagree. this SELECT * FROM table where field ILIKE '%|featured|%'; is valid SQL. % does not need to be escaped in SQL and, in fact, it is used for pattern patching:

[web2py] Re: Problem with Web2py sql that includes % on Postgres; breaking New Relic

2011-12-15 Thread Graham Dumpleton
Are you perhaps introspecting the type of the cursor object in some way and changing behaviour based on that? We wrap the cursor object returned by DBAPI2 module and so you wouldn't see original psycopg2 cursor type. Graham On Dec 16, 10:02 am, Graham Dumpleton graham.dumple...@gmail.com wrote

[web2py] Re: Problem with Web2py sql that includes % on Postgres; breaking New Relic

2011-12-15 Thread Graham Dumpleton
substitution. The psycopg2 adapter is taking even an empty list/tuple as meaning there may be and is so still trying to do substitution even though it cant work. This is the classic problem in Python as to how one indicates an optional parameter. :-( Graham On Dec 16, 10:14 am, Graham Dumpleton

[web2py] Re: Problem with Web2py sql that includes % on Postgres; breaking New Relic

2011-12-15 Thread Graham Dumpleton
I am making a change on New Relic side. You can't do what you are doing as that then will cause wrong thing to happen for when New Relic not used. So am changing things to accommodate for what psycopg2 interprets as default argument. The issue hasn't come up before because Web2Py is the only

[web2py] Looking for people to help test web2py support in New Relic.

2011-10-21 Thread Graham Dumpleton
://support.newrelic.com and I will get back to you. Feedback almost most welcome. Would be good to try and get the level of support for we2py up to the same sort of depth as we do for Django but really need your help to get it there. Thanks. Graham Dumpleton

[web2py] Re: Looking for people to help test web2py support in New Relic.

2011-10-21 Thread Graham Dumpleton
. Is it safe to work in a production website? I can test it with web2pyslices.com and other two working apps. Thank you. http://zerp.ly/rochacbruno Em 21/10/2011 23:34, Graham Dumpleton graham.dumple...@gmail.com escreveu: I tweeted about this already recently, but got no response

[web2py] Re: Apache, Wsgi problem

2011-01-08 Thread Graham Dumpleton
You were possibly using a an old version of sqlite which isn't safe to use in a multithreaded configuration. The MPM settings are not going to help in this case as that error could only come about because you are using mod_wsgi daemon mode and so application is running in distinct process and

[web2py] Re: Apache, Wsgi problem

2011-01-08 Thread Graham Dumpleton
, I don't give a stuff about it either way so please don't drag me into that one. Graham On Saturday, January 8, 2011 10:59:37 PM UTC-5, Graham Dumpleton wrote: You were possibly using a an old version of sqlite which isn't safe to use in a multithreaded configuration. The MPM settings

[web2py] Re: Apache, Wsgi problem

2011-01-08 Thread Graham Dumpleton
. :-( Graham On Jan 9, 12:24 am, Graham Dumpleton graham.d...@gmail.com wrote: On Sunday, January 9, 2011 3:54:37 PM UTC+11, Anthony wrote: Graham, welcome. Careful, though -- we might convert http://twitter.com/GrahamDumpleton/status/23120780938190848you. ;-) http://twitter.com

[web2py] Re: Setting up a dedicated web2py server that supports multiple users, separate folders

2011-01-03 Thread Graham Dumpleton
Use daemon mode of mod_wsgi. Have a daemon process group per user with the user/group of the daemon process corresponding to that of the user whose web2py instance will run in that daemon process group. Then delegate each web2py instance to appropriate daemon process group. The only hard bit

Re: [web2py] Re: Web2Py Foundation?

2010-12-29 Thread Graham Dumpleton
On Wednesday, December 29, 2010 6:48:51 PM UTC+11, stu...@brankovukelic.com wrote: It is an open question whether distribution of such modified copies are legally allowed to still be called web2py if Massimo has sole legal rights on the name. Thus, you may be able to do that, but you

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Graham Dumpleton
On Tuesday, December 28, 2010 5:37:30 PM UTC+11, mdipierro wrote: Not sure what a single person framework means. This framework counts almost 100 contributors and at least 50 people very skilled here. If I get hit by a track any of them can take over by forking my branch as allowed by

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref - TORNADO tried

2010-12-28 Thread Graham Dumpleton
That site you reference is meaningless. Neither Django or web.py are web servers but application frameworks. That is the same sort of flawed benchmarking that Tornado used to claim their web server was so much better when they first announced it. That is, they compared a hello world program

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Graham Dumpleton
in order to avoid internal conflicts. I will write a will that explains what happens to theweb2pytrademark and copyright in case I die. Massimo On Dec 28, 2:12 am, Graham Dumpleton graham.d...@gmail.com wrote: On Tuesday, December 28, 2010 5:37:30 PM UTC+11

Re: [web2py] Re: it case you missed it...

2010-12-13 Thread Graham Dumpleton
On Tuesday, December 14, 2010 9:46:09 AM UTC+11, Anthony wrote: On Monday, December 13, 2010 3:30:17 PM UTC-5, Branko Vukelic wrote: Start verbatim copy - On Mon, Dec 13, 2010 at 1:09 PM, --- lic...@fsf.org wrote: Importing code and sharing namespaces

Re: [web2py] Re: it case you missed it...

2010-12-13 Thread Graham Dumpleton
+11, Branko Vukelic wrote: On Tue, Dec 14, 2010 at 2:15 AM, Graham Dumpleton graham.d...@gmail.com wrote: it being a part of the library. Thus technically the template code may be construed as ending up as part of your application. FSF specifically allows this in LGPL, if I'm not mistaken

Re: [web2py] Re: it case you missed it...

2010-12-12 Thread Graham Dumpleton
On Monday, December 13, 2010 1:39:57 PM UTC+11, Branko Vukelic wrote:Since someone mentioned linking, etc, here's an exceprt from the GNU FAQ: Q. Does prelinking a GPLed binary to various libraries on the system, to optimize its performance, count as modification? A. No. Prelinking is part of a

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
Missing ServerName directives. On Sep 14, 3:18 pm, Johann Spies johann.sp...@gmail.com wrote: For me the deployment of web2py seems to be a recurring problem. I am trying to deploy web2py on a Debian system but not as 'default' . I have root access to the system. I have tried both the

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
. Either way, is using different configuration. Try adding a syntax error in those VirtualHost sections to verify file even being read. On Sep 14, 4:53 pm, Johann Spies johann.sp...@gmail.com wrote: On 14 September 2010 08:21, Graham Dumpleton graham.dumple...@gmail.com wrote: Missing ServerName

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
On Sep 14, 6:31 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote:   Hi Johann, I might be completly wrong but I think that you can t have example.com/phpsite and example.com/web2py at the same time. You can havehttp://phpsite.example.comandhttp://web2py.example.com So long as

[web2py] Re: web2py rocket error on vps

2010-07-31 Thread Graham Dumpleton
Did you actually try Googling for it? Python 2.6.5 and 3.1.2 (???) made a change to C api behaviour. The message is harmless all the same. Upgrade to mod_wsgi 3.3 where the message has been suppressed. Go read ticket 197 on mod_wsgi site and read mod_wsgi release notes for version 3.3. Graham

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 1:58 pm, Michael Toomim too...@gmail.com wrote: Thanks!  I tried rebooting the OS.  Now my resources seem ok (but I didn't check before the reboot): Files used: 1376 out of 75556 Mem used: 580mb out of 796mb Swap used: 0 CPU: 88-99% idle And I know longer see the Exception

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: The problem with IOError, I can understand. As Graham says, if the client closes the connection before the server responds or if the server timesout the socket is closed and apache logs the IOError. That isn't what I said. If you

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
for the clarification. @Michael, do you use the logging module? How? On Jul 20, 4:00 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jul 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: The problem with IOError, I can understand. As Graham says, if the client closes the connection

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
the logging module? How? On Jul 20, 4:00 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jul 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: The problem with IOError, I can understand. As Graham says, if the client closes the connection before the server

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
like how web2py's execfile puts things into global scope from the controllers and automatically reloads code with each request. On Jul 20, 5:02 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jul 21, 8:18 am, mdipierro mdipie...@cs.depaul.edu wrote: Can you comment on memory

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
to see where it's being used. On Jul 20, 8:23 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jul 21, 1:03 pm, Michael Toomim too...@gmail.com wrote: THANK YOU ALL SO MUCH for your help! I just learned a LOT.  It looks like resource consumption was the problem, because

[web2py] Re: Error in wsgi/apache

2010-07-19 Thread Graham Dumpleton
On Jul 20, 12:01 pm, Michael Toomim too...@gmail.com wrote: I'm getting errors like these in my apache error logs: [Mon Jul 19 18:55:20 2010] [error] [client 65.35.93.74] Premature end of script headers: wsgihandler.py,

[web2py] Re: Web2py on port 80 with non-root, setuid, possible?

2010-07-10 Thread Graham Dumpleton
Use Apache/mod_wsgi instead then to host your WSGI application. That or just setup Apache by itself to proxy to your standalone WSGI application listening on a different port. On Jul 11, 1:24 am, Álvaro J. Iradier alvaro.irad...@polartech.es wrote: Well the problem is non-root users can't use

[web2py] Re: postgresql connection problem -

2010-05-27 Thread Graham Dumpleton
On May 27, 9:57 pm, Julius Minka j...@minka.sk wrote: I found something in the archive. This seems to be multiple python versions issue, but still do not have a solution. Unfortunately, this server is preinstalled with python2.4 and I am trying to use 2.6, which can't be probably found

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 26, 3:26 pm, Richard richar...@gmail.com wrote: Occasionally after heavily using my web2py app I get: Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 27, 1:10 pm, Richard richar...@gmail.com wrote: On May 26, 9:58 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On May 26, 3:26 pm, Richard richar...@gmail.com wrote: Occasionally after heavily using my web2py app I get: Proxy Error The proxy server

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 7:00 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 21, 3:33 am, Magnitus eric_vallee2...@yahoo.ca wrote: But if you create tasks without doing it at the OS level, doesn't that means that you won't really be able to take full advantage of multi-processor

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Graham Dumpleton
On May 21, 8:14 pm, Magnitus eric_vallee2...@yahoo.ca wrote: Now that you mention it, I recall reading in the Python/C API that Python wasn't really thread-safe and that Python objects shouldn't be accessed from multiple C threads (they recommended using the Python threading API which was

[web2py] Re: hello

2010-05-13 Thread Graham Dumpleton
On May 13, 8:51 pm, ciprian mephisto...@yahoo.com wrote: thanks for trying to help. but i already spent two days trying to figure it out. i can install web2py with no problems - but i dont have too much experience withmod_wsgi(google doesnt help) no web2py tutorials and i guess this is the

[web2py] Re: IOError, scalability concerned

2010-05-10 Thread Graham Dumpleton
to write data -- Thadeus On Sun, May 9, 2010 at 11:52 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On May 10, 1:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ticket. I usually see them the next day when I check admin. No, it is usually just one IP

[web2py] Re: IOError, scalability concerned

2010-05-10 Thread Graham Dumpleton
be able to be configured by a user (not by default), such that the user can specify exception types and exception descriptions which can be ignored for the particular hosting system or combination of WSGI middleware they use. Graham Massimo On May 9, 11:52 pm, Graham Dumpleton graham.dumple

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 12:28 pm, Thadeus Burgess thade...@thadeusb.com wrote: What could possibly be causing this? A user not waiting for a request to complete before clicking on another link or pressing reload. In other words, client dropped original connection. Graham python 2.6 web2py trunk

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 1:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ticket. I usually see them the next day when I check admin. No, it is usually just one IP but it happens to a lot of people at the same time, scaled by the amount of traffic being put on the server. Then it is likely that the

[web2py] Re: psycopg2 problem

2010-04-01 Thread Graham Dumpleton
On Apr 2, 7:42 am, Thadeus Burgess thade...@thadeusb.com wrote: Somod_wsgi will not let you print, Not true. For older versions of mod_wsgi if you use 'print' you need to redirect it to 'sys.stderr' is all. This is because using sys.stdin/sys.stderr in a WSGI application is not portable.

[web2py] Re: Checking if a webserver if running web2py

2010-03-14 Thread Graham Dumpleton
You can potentially also use any error page as a tell tale fingerprint if defaults are used as different frameworks are going to each have their own. For example: http://www.web2py.com/examples/default/xxx Returns: htmlbodyh1invalid function/h1/body/html!--

[web2py] Re: no more cherrypy wsgiserver

2010-03-13 Thread Graham Dumpleton
On Mar 13, 5:28 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Mar 12, 9:14 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Mar 13, 8:48 am, Timothy Farrell tfarr...@swgen.com wrote: I'm not sure how you upgraded, but make sure you have a rocket.py in your gluon

[web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Graham Dumpleton
On Mar 13, 8:48 am, Timothy Farrell tfarr...@swgen.com wrote: I'm not sure how you upgraded, but make sure you have a rocket.py in your gluon folder. What ever they are doing they are trying to do it under Apache/ mod_wsgi, not as a standalone process. Graham -tim On 3/12/2010 3:42 PM,

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
On Mar 4, 4:28 am, mdipierro mdipie...@cs.depaul.edu wrote: problem is the error appear to be in mod_python, not web2py. Not an issue with mod_python. Web2Py is looking for SCRIPT_URL, this isn't put into req.subprocess_env by Apache core modules or mod_python under normal conditions. The

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
the patch if you can provide us with a proposal. Massimo On Mar 3, 7:36 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Mar 4, 4:28 am, mdipierro mdipie...@cs.depaul.edu wrote: problem is the error appear to be in mod_python, not web2py. Not an issue with mod_python. Web2Py

[web2py] Re: Deploy web2py on Mac

2010-03-02 Thread Graham Dumpleton
On Mar 3, 4:30 pm, Al albertsec...@gmail.com wrote: Hi, Can anyone advise how I can setup web2py to start automatically when the machine is turned on? i.e the services should all be started without having to login. How can that be done with plist and startup items? If you were to deploy

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 6:40 am, mdipierro mdipie...@cs.depaul.edu wrote: Yes. I am running apache2 and I see this: www-data  6215  0.0  0.0 130400   164 ?        S    16:52   0:00 /usr/ sbin/apache2 -k start www-data  6250  0.0  0.2 130296   608 ?        S    16:52   0:00 /usr/ sbin/apache2 -k start

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
), then those options to WSGIDaemonProcess would at least allow it to recover itself whil you sort out what the real problem is. Graham Massimo On Feb 18, 4:11 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 19, 6:40 am, mdipierro mdipie...@cs.depaul.edu wrote: Yes. I am

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
of the ram is www-data 30743  1.9 10.1 449980 26732 ?        Sl   00:37   0:00 (wsgi:web2py)     -k start Yes since the BEAUTIFY bug was fixed I cannot say there is a problem anymore. Thanks for your help. Massimo On Feb 18, 6:04 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
also trigger a restart but based on number of requests. Graham Thank you again. Massimo On Feb 18, 6:56 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 19, 11:39 am, mdipierro mdipie...@cs.depaul.edu wrote: You are right. I had Apache/2.2.8 (Ubuntu) mod_ssl/2.2.8

[web2py] Re: new GIL bug

2010-02-17 Thread Graham Dumpleton
and be confident that the changes to the framework are all correct. By then the performance of Python 3.X stream could have improved to make it more usable. Graham On Feb 17, 12:05 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 17, 4:20 pm, mdipierro mdipie...@cs.depaul.edu

[web2py] Re: new GIL bug

2010-02-16 Thread Graham Dumpleton
On Feb 17, 4:20 pm, mdipierro mdipie...@cs.depaul.edu wrote: Look at this bug report http://bugs.python.org/issue7946 specifically look at the benchmarks at the bottom. This kind of bugs affects web applications since they have threads with lots of IO.  One more reason to stay with python

[web2py] Re: How much memory does web2py need on Unix

2010-02-12 Thread Graham Dumpleton
just label as a rant, contain more useful information than what you can find on using WSGI with FASTCGI. Graham John Heenan On Feb 12, 3:14 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 12, 2:00 pm, John Heenan johnmhee...@gmail.com wrote: From the confused manner Graham

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Graham Dumpleton
'. On Feb 11, 12:01 am, Graham Dumpleton graham.dumple...@gmail.com wrote: What is the actual problem you are trying to solve on GAE? Graham On Feb 11, 4:20 pm, mdipierro mdipie...@cs.depaul.edu wrote: I agree. I was proposing an idea more than an implementation. The methods

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
On Feb 12, 9:59 am, John Heenan johnmhee...@gmail.com wrote: How about web2py in a VPS using less than 40MB RAM? You can reduce web2py memory usage by using a newer generation web server with web2py instead of the internal web server with web2py. Not really. Apache gets trashed in tests

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
to do your home work and perhaps look into why I might say what I have before you dismiss it off hand. Graham John Heenan On Feb 12, 11:32 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 12, 9:59 am, John Heenan johnmhee...@gmail.com wrote: How about web2py in a VPS using

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 12, 1:04 pm, John Heenan johnmhee...@gmail.com wrote: Hello Graham, whoever you are. You sound highly confused, clueless aboout how to present objective data and a fairly typical bombastic nerd of the type that clogs up

[web2py] Re: How much memory does web2py need on Unix

2010-02-11 Thread Graham Dumpleton
server with web2py is not recommended. The question remains what is the best choice for an external web server. The answer is certainly not bloatware like Apache. John Heenan On Feb 12, 12:16 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 12, 1:04 pm, John Heenan johnmhee

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
On Feb 11, 12:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: One of my collaborators pointed me to this. http://blog.dscpl.com.au/2009/04/wsgi-and-printing-to-standard-output... What about this solution that would also address the issue on GAE? class Logger:     def write(self,data):  

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
', 'next', 'read', 'readinto', 'readline', 'readlines', 'seek', 'softspace', 'tell', 'truncate', 'write', 'writelines', 'xreadlines'] On Feb 10, 10:19 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Feb 11, 12:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: One of my

[web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread Graham Dumpleton
On Jan 20, 11:28 pm, Alexandre Andrade alexandrema...@gmail.com wrote: I think is not a good idea. php requires apache2-prefork (single-thread) wsgi works with apache2-mpm (multi-thread) So, they are incompatible. Nonsense. There is no such thing as apache2-mpm so assume you mean worker

[web2py] Re: web2py and apache with mulitple sites

2010-01-20 Thread Graham Dumpleton
On Jan 20, 11:15 pm, Johann Spies johann.sp...@gmail.com wrote: The script inhttp://www.web2pyslices.com/main/slices/take_slice/29 works well when web2py is in the server root. I want to install web2py on a server that already has a php-site.  I have tried and modify the apache

[web2py] Re: Hosting PHP and Web2py

2010-01-19 Thread Graham Dumpleton
On Jan 20, 3:12 pm, vvk varunk.ap...@gmail.com wrote: I installed web2py with apache mod_wsgi. My computer don't have any Domain Name. Another PHP project should be hosted on same machine. How to configure my system to run PHP and web2py at the same time? Temporarily, web2py is using http

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 6:48 am, mdipierro mdipie...@cs.depaul.edu wrote: I have the following in my apache config VirtualHost *:80    ServerName mdp.cti.depaul.edu    ServerAlias mdp.cti.depaul.edu    ServerAliaswww.web2py.com    ServerAdmin mdipie...@cs.depaul.edu    Alias /

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 10:21 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jan 12, 6:48 am, mdipierro mdipie...@cs.depaul.edu wrote: I have the following in my apache config VirtualHost *:80    ServerName mdp.cti.depaul.edu    ServerAlias mdp.cti.depaul.edu

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
Massimo On Jan 11, 5:21 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jan 12, 6:48 am, mdipierro mdipie...@cs.depaul.edu wrote: I have the following in my apache config VirtualHost *:80    ServerName mdp.cti.depaul.edu    ServerAlias mdp.cti.depaul.edu

[web2py:36923] Re: Apache vs Cherokee vs all the rest

2009-12-09 Thread Graham Dumpleton
success), could you give us an example configuration of Nginx+Apache+web2py? My Apache conf (now) its the typical one with the DaemonProcess, ProcessGroup and ScriptAlias... Thanks Alex F El 09/11/2009 22:58, Graham Dumpleton escribi : On Nov 10, 3:10 am, Thadeus Burgessthade

[web2py:36939] Re: What do you think about python 2.7?

2009-12-09 Thread Graham Dumpleton
On Dec 10, 1:55 pm, Iceberg iceb...@21cn.com wrote: I am still using python 2.5.4, the favorite one for web2py. And just notice that Python 2.7 is released, although still in alpha phase.http://www.python.org/download/releases/2.7/ Other new features are not very necessary, but the

[web2py:36757] Re: I/O Error

2009-12-08 Thread Graham Dumpleton
 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Dec 7, 6:37 am, mdipierro mdipie...@cs.depaul.edu wrote: Did you post this on stackoverflow too? I think the problem is that you have print statements and they are not allowed if you use mod_wsgi. Nothing to do

[web2py:36709] Re: web2py mod_wsgi apache problem

2009-12-07 Thread Graham Dumpleton
On Dec 8, 3:48 am, Oguz Yarimtepe oguzyarimt...@gmail.com wrote: On Sat, 5 Dec 2009 11:50:52 -0600 Thadeus Burgess thade...@thadeusb.com wrote: At least with ubuntu it was as easy as apt-get install... edit one (maybe two) config files, and your ready to go for a basic working install.

[web2py:36641] Re: I/O Error

2009-12-06 Thread Graham Dumpleton
On Dec 7, 6:37 am, mdipierro mdipie...@cs.depaul.edu wrote: Did you post this on stackoverflow too? I think the problem is that you have print statements and they are not allowed if you use mod_wsgi. Nothing to do with that. Completely different error message. OP must provide information

[web2py:36107] Re: wsgi and http_authorization

2009-11-27 Thread Graham Dumpleton
On Nov 28, 9:40 am, olivier odema...@gmail.com wrote: I am using web2py build-in server for development and basic http auth works fine! However, when pushing the code on my server (on which my provider propose to use wsgi...) it is not working anymore.  :-( On the server, I checked the

[web2py:35464] Re: scaling web2py (web2pyslice)

2009-11-16 Thread Graham Dumpleton
On Nov 17, 8:53 am, mdipierro mdipie...@cs.depaul.edu wrote: You do not need apache for the worker nodes. You can but would not but you much. It would if you also have static files and are trying to serve it via same infrastructure. Even Apache would be better at serving static files than

[web2py:35152] Re: error on admin via ssl

2009-11-11 Thread Graham Dumpleton
On Nov 12, 11:22 am, Pepe pepea...@gmail.com wrote: if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\      in ['https', 'HTTPS']:     session.secure() elif not remote_addr in hosts:     raise HTTP(200, T('Admin is disabled because insecure channel')) Huh, what exactly is

[web2py:35065] Re: Python + C++ = Go

2009-11-10 Thread Graham Dumpleton
On Nov 11, 2:35 pm, mdipierro mdipie...@cs.depaul.edu wrote: I may use this. I also like the D language. On Nov 10, 9:08 pm, ionel ionelanton...@gmail.com wrote: Somebody interested ?http://golang.org Quoting the FAQ: There is no safe way to call Go code from C or C++ yet. Pity,

[web2py:34991] Re: Apache vs Cherokee vs all the rest

2009-11-09 Thread Graham Dumpleton
On Nov 10, 3:10 am, Thadeus Burgess thade...@thadeusb.com wrote: I use apache on virtualhost at slicehost running multiple web2py virtualhosts. With one web2py instance, my server stands at around 90MB average for memory, it *might* spike up to 115MB if I start some ram caching, however my

[web2py:34707] Re: You are going to love this

2009-11-05 Thread Graham Dumpleton
For the curious, would you like to explain the procedure you, or whoever, went about to generate this. Ie., where were original layouts/stylesheets obtained from, what script or whatever was used to convert/package them into form understood by web2py. Sorry if the answer is obvious but I am

[web2py:34450] Re: how to disable soft cron when running mod_wsgi daemon

2009-11-02 Thread Graham Dumpleton
On Nov 3, 3:07 am, Fred fre...@gmail.com wrote: I am completely baffled by what ExecuteOnCompletion2 and callback do. Could someone explain their design?   What do I lose by calling gluon.main.wsgibase directly? That code in web2py was taken from mod_wsgi online documentation. Read the

[web2py:34267] Re: run 2 web2pys with wsgihandler/apache

2009-10-31 Thread Graham Dumpleton
, Oct 29, 2009 at 6:33 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 30, 9:44 am, Wes James compte...@gmail.com wrote: Is there a way to do this? WSGIScriptAliasMatch ^/(app|admin)(/.*)?$ /opt/web2py-1.69.1/wsgihandler.py/$1$2 WSGIScriptAliasMatch ^/(app2|admin2

[web2py:33774] Re: Python 3.1

2009-10-26 Thread Graham Dumpleton
On Oct 27, 10:57 am, mdipierro mdipie...@cs.depaul.edu wrote: In Python 2.x you can do s.find(..), s.replace(..), etc. where s is a byte string. This API does not exist anymore in in Python 3.x and you can only do string manipulation if s a unicode string. This is very bad because all

[web2py:33564] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-24 Thread Graham Dumpleton
On Fri, Oct 23, 2009 at 9:17 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 24, 3:43 am, Thadeus Burgess thade...@thadeusb.com wrote: So basically, from what I gather looking over what I have, the only thing I have wrong with my configuration is setting PythonHome

[web2py:33565] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-24 Thread Graham Dumpleton
and the mod_wsgi directives in later VirtualHost, as well as AliasMatch would be ignored. Graham On Oct 24, 7:22 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 24, 2:43 pm, Thadeus Burgess thade...@thadeusb.com wrote: The paths are simlinked. You do realise that Apache treats

[web2py:33498] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 8:45 pm, Johann Spies johann.sp...@gmail.com wrote: I see there are many emails about problems with shared hosting. I want to deploy a web2py site (my first one) on a shared host (Debian Etch with python2.4 as default python). Python 2.5 is also available and I have succeeded

[web2py:33542] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 11:35 pm, Johann Spies johann.sp...@gmail.com wrote: 2009/10/23 Graham Dumpleton graham.dumple...@gmail.com: One can only have a single SSL certificate for an IP so you can't have multiple virtual hosts for HTTPS off same IP. That is what I found out while trying

[web2py:33543] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Graham Dumpleton
-Thadeus On Thu, Oct 22, 2009 at 7:09 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 23, 9:12 am, Thadeus Burgess thade...@thadeusb.com wrote: The configuration from the book did not work for me. Using centos5 on Media temple's servers. with Plesk. How did

[web2py:33402] Re: Sessions lost when several servers running on diff ports

2009-10-22 Thread Graham Dumpleton
On Oct 22, 6:34 pm, SergeyPo ser...@zarealye.com wrote: Yes I was running two different applications, and that's what wondered me - why different apps (actually two different python web2py processes) affected each other. I still prefer to keep things simple and avoid various configuration

[web2py:33464] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-22 Thread Graham Dumpleton
On Oct 23, 6:54 am, Thadeus Burgess thade...@thadeusb.com wrote: When specifying, does this mean static files get redirected to being served by apache? Or are they still served by web2py? From testing it seems to still be served by web2py, it just isn't working quite right. Should I use

[web2py:33469] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-22 Thread Graham Dumpleton
perhaps being correct WSGISocketPrefix override required on Centos. Then post error messages and better description of what didn't work along with configuration you are then using at that point. Graham -Thadeus On Thu, Oct 22, 2009 at 4:39 PM, Graham Dumpleton graham.dumple...@gmail.com

[web2py:33280] Re: Sessions lost when several servers running on diff ports

2009-10-21 Thread Graham Dumpleton
web2py install directory, not a shared configuration file. OP would need to clarify what they are doing. Graham Massimo On Oct 20, 9:26 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 21, 12:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Oct 20, 8:01 pm, Graham Dumpleton

[web2py:33239] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
Other web frameworks allow you to customise the name of the session cookie to avoid this sort of problem where different applications run on different ports under same host name. Other web frameworks also allow one to cleanly mount multiple instances of an application under different sub URLs of

[web2py:33246] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
20, 6:04 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Other web frameworks allow you to customise the name of the session cookie to avoid this sort of problem where different applications run on different ports under same host name. Other web frameworks also allow one to cleanly

[web2py:33255] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
into issues. Do you literally mean symlink as in file system symbolic link? Could the alias instead be managed somehow via your global route rewriting rules instead. Graham Massimo On Oct 20, 6:41 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: I am talking about the original persons

[web2py:33261] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
On Oct 21, 12:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: On Oct 20, 8:01 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On Oct 21, 11:14 am, mdipierro mdipie...@cs.depaul.edu wrote: Sorry my answer was confused. I guess having my son jumping around me all the time does

[web2py:32337] Re: deploying web2py on cpanel shared hosting

2009-10-06 Thread Graham Dumpleton
You don't have mod_python installed for that Apache instance. The '_apache' module is a special embedded module created by mod_python Apache module within memory space of Apache process at run time. Graham On Oct 7, 10:14 am, whiskeyjuvenile whiskeyjuven...@gmail.com wrote: [   ]...@[     ]

[web2py:32339] Re: deploying web2py on cpanel shared hosting

2009-10-06 Thread Graham Dumpleton
On Oct 7, 10:35 am, whiskeyjuvenile whiskeyjuven...@gmail.com wrote: Here's the specific apache log error: [Tue Oct 06 18:30:54 2009] [error] [client MY IP] AttributeError: module '/home/[username]/public_html/web2py_modpython.py' contains no 'handler' Presumably you created:

[web2py:/] Re: Versioning using Mercurial

2009-09-22 Thread Graham Dumpleton
On Sep 22, 7:12 pm, Anthon anthon.van.der.n...@googlemail.com wrote: Is anyone using the versioning feature? It seems currently broken out of the box on my mod_wsgi/apache system. The main problem exists because mercurial writes to sys.stdout if some warning/error occurs. On my fresh

[web2py:30961] Re: some questions for web2py.

2009-09-14 Thread Graham Dumpleton
On Sep 14, 3:18 pm, mdipierro mdipie...@cs.depaul.edu wrote: 2) which is the best way to deploy web2py? please provide a document that is explaining how to deploy web2py with that method. Apache+mod_wsgi. It is the book, in chapter 11. You can download that chapter

[web2py:31023] Re: some questions for web2py.

2009-09-14 Thread Graham Dumpleton
or an intermediary is playing very bad caching tricks. Can you triple check. If you are adamant that it is the correct version I will shut up even though what I download is the wrong version. Graham On Sep 14, 5:37 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Sep 14, 3:18 pm

[web2py:30781] Re: Any comments on Tornado Server?

2009-09-11 Thread Graham Dumpleton
On Sep 11, 11:51 pm, Timbo tfarr...@swgen.com wrote: According to the Performance section of their documentation, they recommend running one instance of Tornado per processor core on your server and then joining them together behind a nginx reverse proxy. Looking at the graph, this makes

[web2py:30471] Re: better support for web2py at WebFaction

2009-09-09 Thread Graham Dumpleton
On Sep 9, 3:59 pm, Richard richar...@gmail.com wrote: There are 2 threads in the WebFaction forum at the moment about getting better support for web2py:http://forum.webfaction.com/viewtopic.php?id=3184http://forum.webfaction.com/viewtopic.php?id=3216 I know quite a few of us use

  1   2   >