Part of my product's job is to create a top-level folder. Currently, I can only get it to create the folder in what ever folder the product is added in. I would like to be able to get access to the root directory object but don't know how. How do I access the root directory object? Would 'getPhysicalRoot' do that? If yes, how do I use it? -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup
On Sun, 2003-03-30 at 16:45, Matt Ficken wrote:
Part of my product's job is to create a top-level folder. Currently, I can only get it to create the folder in what ever folder the product is added in. I would like to be able to get access to the root directory object but don't know how.
How do I access the root directory object? Would 'getPhysicalRoot' do that? If yes, how do I use it?
First off, Zope-Dev is for the development *of* Zope, not *in* Zope. As to your question, some discussion of the problem (and a couple solutions) are here: http://www.zopelabs.com/cookbook/1003151229 HTH, Dylan
getPhysicalRoot() or restrictedTraverse("/") would do the job. -aj --On Sonntag, 30. März 2003 19:45 Uhr -0500 Matt Ficken <mattficken@mail.com> wrote:
Part of my product's job is to create a top-level folder. Currently, I can only get it to create the folder in what ever folder the product is added in. I would like to be able to get access to the root directory object but don't know how.
How do I access the root directory object? Would 'getPhysicalRoot' do that? If yes, how do I use it? -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Andreas Jung -
Dylan Reinhardt -
Matt Ficken