[Zope] context syntax for subdir
Tom Germaine
tgermaine@upei.ca
Fri, 23 Aug 2002 13:14:01 -0300
Hello All:
I wish to upload a DTML Document to a subfolder of folderA using a
form and python script which reside in the parent folder of folderA
and don't understand context well enough to designate subfolder
properly. The Document goes into subfolder based on it's filename
and script looks something like:
....
if filename[0:4]=='abc':
client=context.folderA(subfolderabc) #fails at this line
elif ...
...
if hasattr(client,filename): #test for existence, overwrite
client.manage_delObjects([filename])
client.manage_addDTMLDocument(id=filename,file=myfile,title=
mytitle)
else:
client.manage_addDTMLDocument(id=filename,file=myfile,title=
mytite)
How do I stipulate subfolderabc?
Tom Germaine