akonsu
akonsu at gmail.com
Fri Sep 23 15:53:50 EDT 2005
hello, to clarify, you want to be able to preserve your program's state between requests. is this correct? konstantin 2005/9/23, km <km at mrna.tn.nic.in>: > 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 > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|