Function parameter passing problem

2005-05-17 Thread Eduardo Biano
Hi, I am new to python and tried to pass parameters between one function to another. I tried two approaches in doing this but failed. The first is, I tried to assign a variable in foo1() inside an HTML tag so that I can retreive it in foo2() using (get_form_var()). But failed using my limited p

Called function conditional testing (if) of form variables problem

2005-06-15 Thread Eduardo Biano
Hi, I have a problem making conditional testing (if) of a form variable "ans01"(refer generated error). When the form variable is tested (if) by a called function (foo) the value of "ans01" is not properly represented. def foo(request): ans01 = request.get_form_var("ans01") if ans01 =

problem writing to a file each record read

2006-03-14 Thread Eduardo Biano
I am a python newbie and I have a problem with writing each record read to a file. The expected output is 10 rows of records, but the actual output of the code below is only one row with a very long record (10 records are lump into one record). Thank you in advance for your help. Here is the code: