Converting a set of data to string and then into a file

Thomas Guettler guettli at
Thu Oct 7 16:04:35 CEST 2004

Am Thu, 07 Oct 2004 06:30:58 -0700 schrieb Shufen:

> Hi,
> I have set up a upload form where user can add data into the form via
> a web browser and submit it. And these data entered by the user will
> be grabbed by:
> xxxx = data.getvalue.('xxxx')     # data is the name of the form

> The error stated that I can't concatenate 'str'
> and 'NoneType'.


You can do it like this:

if foo==None:

Then you can concatenate the values.


More information about the Python-list mailing list