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',
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
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) + , )
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
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
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
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?
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
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
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
10 matches
Mail list logo