HTML generation vs PSP vs Templating Engines

2005-11-16 Thread pkassianidis
Hello everybody,

I am in the process of writing my very first web application in Python,
and I need a way to
generate dynamic HTML pages with data from a database.  I have to say I
am overwhelmed
by the plethora of different frameworks, templating engines, HTML
generation tools etc that
exist. After some thought I decided to leave the various frameworks
aside for the
time being and use mod_python.publisher along with some means of
generating HTML on
the fly.
Could someone that has used all the different ways mentioned above for
dynamic HTML
content, suggest what the pros and cons of the different methods are?

  Thank you very much in advance

  Panos

-- 
http://mail.python.org/mailman/listinfo/python-list


Override default signal handler in interactive shell

2006-03-27 Thread pkassianidis
Hello everybody,

I have written a python script which executes some functions and then
returns to the python interactive shell prompt (In other words I use
the command
"#!/usr/bin/python -i " in the script's header.
In this script I register my own handler for the SIGINT and SIGTERM
handlers but when I press Control-C the default handler is invoked and
the message "KeyboardInterrupt" is displayed. If I don't allow the
script to return control to the interactive shell, by putting for
example an endless loop, then  my handler works fine. Does anyone know,
how I can make it work in the first case also? Thank you very much.

 Best Regards

Panos

-- 
http://mail.python.org/mailman/listinfo/python-list