python eager
python_eager at yahoo.com
Mon Jan 2 23:23:59 EST 2006
Hi, i am very happy to get this solution from yours. I followed your code snippets and finally i got the answer. Once again i am very happy and thank you to all . bye Python Eager Graham Dumpleton <grahamd at dscpl.com.au> wrote: Using req.write() in PSP partly defeats the purpose of using it in the first place. Ie., to avoid having to fiddle with req object directly. For another example of how to do for loops see: for key in req.subprocess_env.keys(): # indent %> # end for %> test Indenting levels is critical with PSP. It defaults internally to using a tab width for laying out its own auto generated code. If you use a different indent level you have to be quite careful to include the comment hints so it knows what indent level you are using, eg., "# indent" in the above. See: http://www.modpython.org/pipermail/mod_python/2005-May/018102.html for further information about indenting issues and further loop examples. Graham Mike Looijmans wrote .. > There are several errors, so I'm not surprised that you cannot find it: > > - "res" is probably a misspelled "req" > - Indentation is completely wrong > - ending %> after for is probably not what you meant. > - using req.write(...) to output a PSP script? > - invalid colon at end of that line > > You probably meant the following: > .... > > > > .... > > This cryptic thing should do the same, but quicker and without indentation: > > %s" % n) for n in range(31)] %> > > -- > Mike Looijmans > Philips Natlab / Topic Automation > > > python eager wrote: > > Hi > > in python server pages i am using for loop . but it will not work > > properly. The code will be as follow as : > > Date of Birth > > > > > > > > > > res.write("" +> > + ""):> > > > > > nbsp; > > > > > > But it will not work. What is the error , i cannt found the error. Would > > any one have solution please send mail me. Thank You Very much. and also > > Happy New Year > > > > Note : very urget for me .reply wanted > > > > regards > > Python_Eager > > > > > > ------------------------------------------------------------------------ > > Yahoo! for Good - Make a difference this year. > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Mod_python mailing list > > Mod_python at modpython.org > > http://mailman.modpython.org/mailman/listinfo/mod_python > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060102/2ae8a535/attachment-0001.html
|