[Zope] Add file to localFS - part II
Marie Robichon
robichon at esrf.fr
Thu Aug 7 13:15:54 EDT 2003
Follow-up to my last message (below)
I have also tried :
staffpdfs=getattr(context, 'pdfs')
in this case the pdf is uploaded to the container folder
Anyone have any ideas ?????
__________________________________________________________
I am trying to add a file to a localFS, but am having difficulties in
referencing the localFS correctly :
The script I am running is on the same level (ie in the same container) as
my localFS called pdfs.
have tried
staffpdfs=context.pdfs
...
staffpdfs.manage_addFile(CVFileName, CVFile, title)
in this case the pdf is uploaded to the container folder
and
staffpdfs=container.pdfs
...
staffpdfs.manage_addFile(CVFileName, CVFile, title)
in this case the pdf is uploaded to the container folder
and
staffpdfs=container['pdfs']
...
staffpdfs.manage_addFile(CVFileName, CVFile, title)
in this case the pdf is uploaded to the container folder
and
pdfs.manage_addFile(CVFileName, CVFile, title)
which gives an error :
NameError
Error Value: global name 'pdfs' is not defined
Must be doing something really silly, but am stumped.
Can someone help me?
TIA
Marie
More information about the Zope
mailing list