[Zope] ZPublisher.Client not handling multiple-value files

Tony Lownds Tony Lownds <tony@www.printra.net>
Wed, 11 Aug 1999 17:19:39 -0700 (PDT)


Hi,

The following code snippet has some wierd behavior.
--
url="http://example.com/test.cgi"
file1="foo.txt"
file2="bar.txt"

from ZPublisher.Client import call

call(url, x=['hello','world'])	# sending a list works great 

call(url, x=open(file1))	# sending a file works great

call(url, x=[open(file1), open(file2)])	#sending a list of files doesn't work right
--

The third call will send a list containing ["<open file '/tmp/foo.txt',
mode 'r' at 103b50>", "<open file '/tmp/bar.txt', mode 'r' at 1039e8>"]
I checked out the code but couldn't see the problem. In the Zope-mail
gateway I'm writing, I want to pass the attachments as a list of files.

-Tony Lownds