[Zope] small python problem

sanjeev c s sanju22_us@yahoo.com
Wed, 5 Dec 2001 08:16:10 -0800 (PST)


Hello friends,
i have a form which uploads a file.
and it calls a method which pass parameter to a python
script. this python script creates a 'file object'.

Now the python script creates a 'file object' even if
file is not uploaded in the form. so in the script i
want to have a condition,

if picture:
  container.foldername.manage_addImage(id=id,
file=picture)

but still even if the file is not uploaded the 'file
object' is created. what is the problem ??
i have to use the python script and not only DTML
method because i am doing some other calcuations too.
Please help !!!

Thanks,
Sanju




__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com