km
km at mrna.tn.nic.in
Fri Sep 23 07:33:04 EDT 2005
hi all, i am using publisher for web scripting with mod_python in apache 2. i have a html page with form 'action'attribute set to 'myscript.py/run' which calls the script: ######### obj = myclass() def run(req,i = 0): for f in req.form.list: collect_data #process and collect data using obj and f.value and htmlify it return collected_data # displays result wrapped in a form sction set to 'myscript.py/run?i=1' ######### now i wish to use use the definition run recursively on successive result form displays by keeping track of new data collected in the same object defined. how can i do it ? thanks in advance, regards, KM
|