[Zope] Adding a File Object to a LocalFS Object
Asad Habib
ahabib at engin.umich.edu
Fri Nov 5 11:20:59 EST 2004
Hello. I am trying to add a File object to a LocalFS object with id
'test'. I am able to detect the LocalFS object within the <dtml-in> and
there is only one Local FS object in this particular parent Folder object.
When the manage_addFile function call is executed, the File object is
added to the parent Folder object instead of the contained Local FS
object. Any help would be greatly appreciated. Thanks.
- Asad
<dtml-in expr="aq_parent.objectValues('Local File System')" prefix="current_localFS">
<dtml-if expr="current_localFS_item.getId() == 'test'">
<dtml-call "current_localFS_item.manage_addFile(id=REQUEST.form['fileName'],file=REQUEST.form['file'],title='',precondition='',content_type='application/pdf')">
</dtml-if>
</dtml-in>
More information about the Zope
mailing list