More On the Strange Problem

Emile van Sebille emile at fenx.com
Wed Dec 23 14:34:42 EST 2009


On 12/23/2009 10:21 AM Victor Subervi said...
<snip>
> printed out. This is the code:
>
>    print 'printTheForm: ', descrProds, '<br />'
>    for value in descrProds:
>      print 'value: ', value, '<br />'

Why not try this in a fashion more likely to succeed...

import cgi
for value in descrProds:
   print 'value: %s <br />' % cgi.escape(value)

That should at least push everything through whatever is causing the 
problem so you can see what values actually are...

Emile




More information about the Python-list mailing list