[Zope] addFile and getFiles Problem

Dieter Maurer dieter@handshake.de
Thu, 10 Apr 2003 23:58:31 +0200


Zope@Stylus wrote at 2003-4-10 16:10 +0530:
 > ...
 > In this case the container where the new file or Folder is to be added
 > ("container.Files")  is explicitly stated.So if i call this function from
 > some other file and try to add a file it again adds a file in the "Files"
 > container.
 > I am having a Content management System made  using Zope although not
 > exactly implementing the full functionality of the CMF.
 > This System allows a user based on permisions to add Folders and files which
 > can be viewed by others.
 > The problem here is that when a folder is added I will need to include by
 > default the addFile,getFiles,getSize,getLink python scripts in all New
 > folders added by a user.That means 4 new files have to be added to a new
 > Folder everytime I add a folder.

An alternative would be to acquire these objects
and use "context" rather than "container" to determine
the destination folder.


Dieter