[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread wmiller
The templating is working as designed and it's pretty responsive subjectively speaking.  For those who might be interested, I'll post some code and benchmarks after taking some time to clean up the code and figure out a safe way to use eval within the template. You should avoid 'eval',

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread Dan Fairs
here the the print statement is modified to just return output to the browser. Also, variables surrounded by { } are returned to the browser based on the variables in locals(). I'm still holding out hope that there'll be a way to make eval safe or maybe figure out a better alternative to

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread gert
On Dec 16, 4:17 pm, wmiller walter.mil...@gmail.com wrote: % def fib(n):     a, b = 0, 1     while b n:         print(str(b) + , )         a, b = b, a+b     return b-a var = fib(100) % brbr {var} Suggestion, def fib(n): a, b = 0, 1 while b n: print(str(b) + , )

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread wmiller
Suggestion, def fib(n):      a, b = 0, 1      while b n:          print(str(b) + , )          a, b = b, a+b      return b-a  var = fib(100) %          brbr          {var} % Would make it python compatible, wsgi compatible, unit test compatible, import compatible, eval

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread Graham Dumpleton
2008/12/17 wmiller walter.mil...@gmail.com: The templating is working as designed and it's pretty responsive subjectively speaking. For those who might be interested, I'll post some code and benchmarks after taking some time to clean up the code and figure out a safe way to use eval

[modwsgi] Re: (2)No such file or directory: mod_wsgi or Call to fopen() failed for ''

2008-12-16 Thread Reed O'Brien
On Dec 16, 2008, at 1:15 AM, Graham Dumpleton wrote: 2008/12/16 Reed O'Brien reedobr...@gmail.com: On Dec 15, 2008, at 5:59 PM, Graham Dumpleton wrote: Can you try with mod_wsgi source code direct from subversion? http://code.google.com/p/modwsgi/source/checkout I was remiss not

[modwsgi] Re: (2)No such file or directory: mod_wsgi or Call to fopen() failed for ''

2008-12-16 Thread Graham Dumpleton
2008/12/17 Reed O'Brien reedobr...@gmail.com: On Dec 16, 2008, at 1:15 AM, Graham Dumpleton wrote: 2008/12/16 Reed O'Brien reedobr...@gmail.com: On Dec 15, 2008, at 5:59 PM, Graham Dumpleton wrote: Can you try with mod_wsgi source code direct from subversion?

[modwsgi] [RFC] Announcing modwsgideploy script. Deploy your tg2 app with apache and modwsgi with one command.

2008-12-16 Thread Lukasz Szybalski
Hello, I'm pleased to announce modwsgideploy ! What is it? modwsgideploy is a template that you install into your tg2 folder. This set of templates will create an apache folder inside of you application. The 4 configuration files have the necessary settings to run you tg2 app via apache and

[modwsgi] Re: (2)No such file or directory: mod_wsgi or Call to fopen() failed for ''

2008-12-16 Thread Reed O'Brien
On Dec 16, 2008, at 5:22 PM, Graham Dumpleton wrote: 2008/12/17 Reed O'Brien reedobr...@gmail.com: On Dec 16, 2008, at 1:15 AM, Graham Dumpleton wrote: 2008/12/16 Reed O'Brien reedobr...@gmail.com: On Dec 15, 2008, at 5:59 PM, Graham Dumpleton wrote: Can you try with mod_wsgi source

[modwsgi] Re: (2)No such file or directory: mod_wsgi or Call to fopen() failed for ''

2008-12-16 Thread Graham Dumpleton
2008/12/17 Reed O'Brien reedobr...@gmail.com: configure-options = CFLAGS=-fPIC -L/usr/lib64 -I${python:location}/include -L$ {python:location}/lib CXXFLAGS=-L/usr/lib64 -I${python:location}/include -L$ {python:location}/lib LDFLAGS=-Wl,-L${python:location}/lib