Create an external method containing the following code: from OFS.Folder import Folder def addLocalFSFolder(self, id): ob = Folder() ob.id = id self._setObject(id, ob) Call it like so: <dtml-call "addLocalFSFolder(local, foldername)"> Aaron Gillette abg@comco-inc.com Comco, Inc. The Source for Data Pros WorldWide. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Aseem Mohanty Sent: Tuesday, July 23, 2002 2:46 AM To: zope@zope.org Subject: [Zope] LocalFS and adding folders dynamically Hi, I am using a localFS to manage user uploaded files. When a user uploads a file I basically create a folder for the user using manage_AddFolder to the localFS object and then call manage_upload to upload the file to the newly created folder. The reason I do this is that there doestn seem to be a way to add folders to the localFS product using its API. The problem is LocalFS security settings dont have Allow Add Folder property and hence unless I am manager I cant call manage_AddFolder. I dont want to proxy the manager role for the containing folder because I dont want users to be (even if accidentally) add folders to the containing folder. What options do I have?? Is there any way at all to do it?? TIA AM -- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ================================================================== _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )