23 Aug
2002
23 Aug
'02
4:14 p.m.
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