[Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Tim Cook
I am building a platform where I want to initialize the ZODB (that will be running under Zope) with three folders with sitemanagers. If I use Folders like this: if 'AR' not in root['Application']: root['Application']['AR']=folder.Folder() sm = LocalSiteManager(root['Application']['AR'])

Re: [Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Shailesh Kumar
BTreeContainer doesn't support site managers. Folder is a subclass of SiteManagerContainer which is a subclass of BTreeContainer. You can happily use Folder here. With regards, - Shailesh On 7/8/08, Tim Cook <[EMAIL PROTECTED]> wrote: > > I am building a platform where I want to initialize th

Re: [Zope3-Users] OOBtrees & ZODB

2008-07-08 Thread Tim Cook
On Tue, 2008-07-08 at 09:31 -0700, Shailesh Kumar wrote: > BTreeContainer doesn't support site managers. > > Folder is a subclass of SiteManagerContainer which is a subclass of > BTreeContainer. > > You can happily use Folder here. > Thanks. I hadn't noticed that. In the earlier days of Z

Re: [Zope3-Users] OOBtrees & ZODB

2008-07-09 Thread Randy Crafton
Folder uses an OOBTree to store it's data, so it should be ok. But if you want to use BTreeContainer and have it work as a Site, you just have the mix the two together in a custom container class: from zope.app.container.interfaces import IContainer from zope.app.component.interfaces import IPossi

Re: [Zope3-Users] OOBtrees & ZODB

2008-07-09 Thread Tim Cook
On Wed, 2008-07-09 at 08:39 -0500, Randy Crafton wrote: > Folder uses an OOBTree to store it's data, so it should be ok. Thanks. I believe that solves my issue. :-) > But if you want to use BTreeContainer and have it work as a Site, you > just have the mix the two together in a custom contain