[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 fr

[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 wrote

[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 wrote: > On Dec 16,

[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 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: > > http://www.postgresql.org/docs/7.4/static/functions-matching.html

[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" > escreveu: > > > > > > > > > I tweet

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

2011-10-21 Thread Graham Dumpleton
an create a ticket at: http://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: Apache, Wsgi problem

2011-01-08 Thread Graham Dumpleton
tuff being hijacked all the time. :-( Graham > On Jan 9, 12:24 am, Graham Dumpleton > 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/st

[web2py] Re: Apache, Wsgi problem

2011-01-08 Thread Graham Dumpleton
'import' issue, 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 u

[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 n

[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 in

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, bu

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Graham Dumpleton
; > individual. It seems to be the model works well for them. In my case I > > decided not to pass copyright and trademark to experts4solutions > > because I thought some would have criticized it. > > > > I am not the only committer to the mainweb2pybranch. Jonathan

[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 wri

[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 b

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 > 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

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, --- wrote: > > > Importing code and sharing namespaces would

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 co

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
On Sep 14, 6:31 pm, Kenneth Lundström 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 Apache configured right, ther

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-14 Thread Graham Dumpleton
first. 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 wrote: > On 14 September 2010 08:21, Graham Dumpleton > wrote: > > > Missing ServerName directives. > >

[web2py] Re: Deployment problem (apache2 mod_wsgi)

2010-09-13 Thread Graham Dumpleton
Missing ServerName directives. On Sep 14, 3:18 pm, Johann Spies 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 example in the book 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: book 3rd edition call of help

2010-07-28 Thread Graham Dumpleton
On Jul 27, 8:49 pm, mdipierro wrote: > This is very very preliminary: > >    http://web2py.com/book2 > > It is not editable (yet) and I am still adding material but it does > address a lot of issues. > Please use this thread to add comments in particular: > > What sections are missing? > What ne

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
memory leak I worry it's somewhere further up the stack.  I don't know > any ways to investigate memory consumption to see where it's being > used. > > On Jul 20, 8:23 pm, Graham Dumpleton > wrote: > > > > > On Jul 21, 1:03 pm, Michael Toomim wrote:

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
ust say I really really 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 > wrote: > > > > > On Jul 21, 8:18 am, mdipierro wrote: > > &g

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
graded to a bigger machine and am changing my code to remove ajax > > (will reduce load by 60x by decreasing functionality). I don't know > > what else to do. > > > On Jul 20, 2:03 am, mdipierro wrote: > > > > Thanks for the clarification. > > > > @Michael

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
    logger.addHandler(handler) >     return logger > > logging = > cache.ram('app_wide_log',lambda:_init_log(),time_expire=None) > > On Jul 20, 2:03 am, mdipierro wrote: > > > > > Thanks for the clarification. > > > @Michael, do you use the log

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 5:17 pm, mdipierro 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 see that message when

[web2py] Re: Error in wsgi/apache

2010-07-19 Thread Graham Dumpleton
On Jul 20, 1:58 pm, Michael Toomim 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 occurred"

[web2py] Re: Error in wsgi/apache

2010-07-19 Thread Graham Dumpleton
On Jul 20, 12:01 pm, Michael Toomim 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, > referer:http://yuno.us/init/hits/hit?assignmentId=1A7KADKCHTB1IJS3Z5CR16OZM4V... >

[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 wrote: > Well the problem is non-root users can't use ports < 1024, and I want > to

[web2py] Re: postgresql connection problem -

2010-05-27 Thread Graham Dumpleton
On May 27, 9:57 pm, Julius Minka 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 undermod_wsgi >

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 27, 1:10 pm, Richard wrote: > On May 26, 9:58 pm, Graham Dumpleton > wrote: > > > > > > > On May 26, 3:26 pm, Richard wrote: > > > > Occasionally after heavily using my web2py app I get: > > > > """ > > >

[web2py] Re: apache proxy error

2010-05-26 Thread Graham Dumpleton
On May 26, 3:26 pm, Richard 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 > """ W

[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 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 exposed in the Python/C

[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 wrote: > On May 21, 3:33 am, Magnitus 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 hardware (since the OS handles the hardware and i

[web2py] Re: hello

2010-05-13 Thread Graham Dumpleton
On May 13, 8:51 pm, ciprian 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 end. i really need

[web2py] Re: IOError, scalability concerned

2010-05-10 Thread Graham Dumpleton
ils out details 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 Dump

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
or] [client **] mod_wsgi > >>> (pid=3926): Exception occurred processing WSGI script > >>> '/web2py/wsgihandler.py'. > >>> [Sun Jan 31 13:42:51 2010] [error] [client **] IOError: failed to > >>> write data > > >>> -- > >

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 1:51 pm, Thadeus Burgess 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 ISP or network all

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Graham Dumpleton
On May 10, 12:28 pm, Thadeus Burgess 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 > apache/mod_wsgi 2.6 > >

[web2py] Re: psycopg2 problem

2010-04-01 Thread Graham Dumpleton
On Apr 2, 7:42 am, Thadeus Burgess 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. Because though people ar

[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: invalid function The idea of an 'invalid function' could be viewed as distinct

[web2py] Re: no more cherrypy wsgiserver

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

[web2py] Re: no more cherrypy wsgiserver

2010-03-12 Thread Graham Dumpleton
On Mar 13, 8:48 am, Timothy Farrell 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, Jose wrote: > >

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
te the patch if you can provide us > with a proposal. > > Massimo > > On Mar 3, 7:36 pm, Graham Dumpleton > wrote: > > > > > On Mar 4, 4:28 am, mdipierro wrote: > > > > problem is the error appear to be in mod_python, not web2py. > > > Not an issue

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
On Mar 4, 4:28 am, mdipierro 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 only time that a variabl

[web2py] Re: Deploy web2py on Mac

2010-03-02 Thread Graham Dumpleton
On Mar 3, 4:30 pm, Al 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 under Apache/mod_w

[web2py] Re: db select cache.ram.clear() and apache2 + wsgi not working

2010-02-26 Thread Graham Dumpleton
For a further explanation of different modes you can run application under with Apache/mod_wsgi read: http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading Graham On Feb 26, 7:42 pm, mdipierro wrote: > it is not useless. It works of if you run only one wsgi process but > cache lives onl

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
so trigger a restart but based on number of requests. Graham > Thank you again. > > Massimo > > On Feb 18, 6:56 pm, Graham Dumpleton > wrote: > > > > > On Feb 19, 11:39 am, mdipierro wrote: > > > > You are right. I had > > > > Apache/2.2.8 (

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
ing most 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,

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
ould see such memory growth. If you were using mod_wsgi 2.X (preferably 2.5 or later), 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 > wrote: > &g

[web2py] Re: website not working

2010-02-18 Thread Graham Dumpleton
On Feb 19, 6:40 am, mdipierro 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 > www-data  631

[web2py] Re: new GIL bug

2010-02-17 Thread Graham Dumpleton
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 > wrote: > > > > > On Feb 17, 4:20 pm, mdipierro wrote: > > >

[web2py] Re: new GIL bug

2010-02-16 Thread Graham Dumpleton
On Feb 17, 4:20 pm, mdipierro 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 2.5 for now. Fo

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

2010-02-12 Thread Graham Dumpleton
you can get help for it from a community people who are knowledgeable about it. Often posts I make like this, which you likely would 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,

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

2010-02-11 Thread Graham Dumpleton
> > the FastCGI socket information to WGSI to use existing WGSI > > infrastructure but this is irrelevant. The code is short and simple. > > This is all irrelevant to the web server. > > > 5) Using the internal web server with web2py is not recommended. The > > que

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

2010-02-11 Thread Graham Dumpleton
different web server or architecture will magically somehow solve all your problems. Graham > John Heenan > > On Feb 12, 12:16 pm, Graham Dumpleton > wrote: > > > > > On Feb 12, 1:04 pm, John Heenan wrote: > > > > Hello Graham, whoever you are. >

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

2010-02-11 Thread Graham Dumpleton
want 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 > wrote: > > > > > On Feb 12, 9:59 am, John Heenan wrote: > > > > How about web2py in a

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

2010-02-11 Thread Graham Dumpleton
On Feb 12, 9:59 am, John Heenan 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 by newer generatio

[web2py] Re: wsgi and sys.stdout

2010-02-11 Thread Graham Dumpleton
ll print it sends it to stdout and that is redirect into > >> > the text of the response so it break pages. > > >> Using print running web2py on Apache cause exceptions since mod_wsgi > >> does not implement sys.stdout. > >> So I think we need to focus t

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
duce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', > 'close', 'closed', 'encoding', 'fileno', 'flush', 'isatty', 'mode', > 'name', 'newlines', '

[web2py] Re: wsgi and sys.stdout

2010-02-10 Thread Graham Dumpleton
On Feb 11, 12:58 pm, mdipierro 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): >          logging

[web2py] Re: Hosting PHP and Web2py

2010-01-22 Thread Graham Dumpleton
ion would be virtual hosts: > > www.mysite.com- > web2py > other.mysite.com -> php (/var/www) > > I will test it later. > > 2010/1/20 Graham Dumpleton > > > > > > > > > On Jan 20, 11:28 pm, Alexandre Andrade > > wrote: > > > I thin

[web2py] Re: web2py and apache with mulitple sites

2010-01-20 Thread Graham Dumpleton
On Jan 20, 11:15 pm, Johann Spies 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 configuration to one below (I

[web2py] Re: Hosting PHP and Web2py

2010-01-20 Thread Graham Dumpleton
On Jan 20, 11:28 pm, Alexandre Andrade 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 MPM. Even so, Apac

[web2py] Re: Hosting PHP and Web2py

2010-01-19 Thread Graham Dumpleton
On Jan 20, 3:12 pm, vvk 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 service and https

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
raham > Massimo > > On Jan 11, 5:21 pm, Graham Dumpleton > wrote: > > > > > On Jan 12, 6:48 am, mdipierro wrote: > > > > I have the following in my apache config > > > > > > >    ServerName mdp.cti.depaul.edu > > >    S

[web2py] Re: apache help

2010-01-11 Thread Graham Dumpleton
On Jan 12, 10:21 am, Graham Dumpleton wrote: > On Jan 12, 6:48 am, mdipierro wrote: > > > > > > > I have the following in my apache config > > > > >    ServerName mdp.cti.depaul.edu > >    ServerAlias mdp.cti.depaul.edu > >    

[web2py] Re: apache help

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

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

2009-12-09 Thread Graham Dumpleton
On Dec 10, 1:55 pm, Iceberg 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 statement "A much >

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

2009-12-09 Thread Graham Dumpleton
ithout 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 : > > &g

[web2py:36757] Re: I/O Error

2009-12-08 Thread Graham Dumpleton
> >    print ">" > > > IOError: [Errno 5] Input/output error > > > > and when i remove this line it works fine i dont know why this problem > > > caused by?? > > > > Thanks > > > > On Dec 6, 10:09 pm, Graham Dumpleton

[web2py:36709] Re: web2py mod_wsgi apache problem

2009-12-07 Thread Graham Dumpleton
On Dec 8, 3:48 am, Oguz Yarimtepe wrote: > On Sat, 5 Dec 2009 11:50:52 -0600 > > Thadeus Burgess 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. (mind you there are lots of other st

[web2py:36641] Re: I/O Error

2009-12-06 Thread Graham Dumpleton
On Dec 7, 6:37 am, mdipierro 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 about how they are hostin

[web2py:36150] Re: web2py on Apache Tomcat

2009-11-28 Thread Graham Dumpleton
Can Jython not be used as intermediary. http://skunkyjay.wordpress.com/2009/06/12/web2py-now-works-with-jython/ You would just need a WSGI adapter for Jython that can interact with Tomcat API. Graham On Nov 29, 3:04 pm, mdipierro wrote: > You can run on apache > > http://web2py.com/examples/st

[web2py:36107] Re: wsgi and http_authorization

2009-11-27 Thread Graham Dumpleton
On Nov 28, 9:40 am, olivier 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 "request.env", "ht

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

2009-11-16 Thread Graham Dumpleton
On Nov 17, 8:53 am, mdipierro 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 builtin server. Because

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

2009-11-11 Thread Graham Dumpleton
On Nov 12, 11:22 am, Pepe 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 that code mean

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

2009-11-10 Thread Graham Dumpleton
On Nov 11, 2:35 pm, mdipierro wrote: > I may use this. I also like the D language. > > On Nov 10, 9:08 pm, ionel wrote: > > > Somebody interested ?http://golang.org Quoting the FAQ: "There is no safe way to call Go code from C or C++ yet." Pity, otherwise would have contemplated using it

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

2009-11-09 Thread Graham Dumpleton
On Nov 10, 3:10 am, Thadeus Burgess 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 > reports have n

[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 igno

[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 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 mod_wsgi documenta

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

2009-10-31 Thread Graham Dumpleton
; > -wes > > On Thu, Oct 29, 2009 at 6:33 PM, Graham Dumpleton > > > > wrote: > > > On Oct 30, 9:44 am, Wes James wrote: > >> Is there a way to do this? > > >> WSGIScriptAliasMatch ^/(app|admin)(/.*)?$ > >> /opt/web2py-1.69.1/wsgih

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

2009-10-29 Thread Graham Dumpleton
On Oct 30, 9:44 am, Wes James wrote: > Is there a way to do this? > > WSGIScriptAliasMatch ^/(app|admin)(/.*)?$ > /opt/web2py-1.69.1/wsgihandler.py/$1$2 > WSGIScriptAliasMatch ^/(app2|admin2)(/.*)?$ > /opt/web2py-1.68.1/wsgihandler.py/$1$2 > > I was trying this earlier and it was kind of glitc

[web2py:33774] Re: Python 3.1

2009-10-26 Thread Graham Dumpleton
On Oct 27, 10:57 am, mdipierro 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 network protocols use byt

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

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

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

2009-10-24 Thread Graham Dumpleton
ver. > > -Thadeus > > On Fri, Oct 23, 2009 at 9:17 PM, Graham Dumpleton < > > > > graham.dumple...@gmail.com> wrote: > > > On Oct 24, 3:43 am, Thadeus Burgess wrote: > > > So basically, from what I gather looking over what I have, the only thing

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

2009-10-23 Thread Graham Dumpleton
ave been > > created through Plesk. Mainly the SSL stuff. > > > Still confused as to whywww.site.comis different from site.com. > > > I can post more details tomorrow morning. > > > Thanks > > > -Thadeus > > > On Thu, Oct 22, 2009 at 7:09 PM, Graha

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

2009-10-23 Thread Graham Dumpleton
On Oct 23, 11:35 pm, Johann Spies wrote: > 2009/10/23 Graham Dumpleton : > > > > > 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 this. > &

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

2009-10-23 Thread Graham Dumpleton
On Oct 23, 8:45 pm, Johann Spies 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 in installing a 2.

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

2009-10-22 Thread Graham Dumpleton
urationIssues I would very much recommend going back to what 2nd edition of web2py books says to use, with only addition 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 u

[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 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 a subdomain wit

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

2009-10-22 Thread Graham Dumpleton
nstallation then that parameter cannot be set in any > > > > of those configurations files else both instances will have the same > > > > prefix and that would defy the purpose. > > > > > This should go in a configuration parameter of setting that is > >

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

2009-10-20 Thread Graham Dumpleton
to each. As each has distinct 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 > wrote: > > > > > On Oct 21, 12:37 pm, mdipierro wrote: > > > &g

[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 wrote: > On Oct 20, 8:01 pm, Graham Dumpleton > wrote: > > > On Oct 21, 11:14 am, mdipierro wrote: > > > > Sorry my answer was confused. I guess having my son jumping around me > > > all the time does not help. > > >

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

2009-10-20 Thread Graham Dumpleton
ey will have distinct session cookies. > He can can access "a" from one port and "b" from the other without > running 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 r

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

2009-10-20 Thread Graham Dumpleton
access the session, it can > release the lock. > > Massimo > > On Oct 20, 6:04 pm, Graham Dumpleton > wrote: > > > > > Other web frameworks allow you to customise the name of the session > > cookie to avoid this sort of problem where different applicatio

[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 s

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

2009-10-06 Thread Graham Dumpleton
On Oct 7, 10:35 am, whiskeyjuvenile 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_modpython.py That file

[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 wrote: > [   ]...@[     ] [~/www]# python web2py_modp

  1   2   >