[Zope] file attributes
John Hunter
jdhunter@ace.bsd.uchicago.edu
Wed, 27 Feb 2002 14:11:40 -0600
I am using a form to upload a file object:
<tr><th>EEG File</th>
<td><INPUT TYPE="file" NAME="file_name" WIDTH=60></td></tr>
When the form is submitted, the REQUEST object file_name is passed to
a Python Script which adds it to the file system:
folder.manage_addFile(id='', file=file_name)
return getattr(file_name, 'filename')
This works fine.
My question is on the getattr part. I got code from some example,
long lost to me now, and can grok how it works, but I am having
trouble finding suitable documentation. For example, what are the
other attributes of file_name besides 'filename'. I tried '__dict__'
to get a listing but got an error, so I suspect this is one of the
protections of the Zope 'getattr'.
Could someone point me to some reference documentation that would have
this?
Thanks,
John Hunter