[ZWeb] Problems with /acl_users

Shane Hathaway shane@digicool.com
Tue, 26 Sep 2000 12:07:52 -0400 (EDT)


On Tue, 26 Sep 2000, Martijn Pieters wrote:

> On Tue, Sep 26, 2000 at 11:15:47AM -0400, Shane Hathaway wrote:
> > At the moment, however, we seem to be safe without a __getattr__.  I'll
> > change it when/if the need arises.
> 
> I'd like to be pro-active about this. If the only difference is
> __getattr__ support, then I'd like to avoid running into the need
> unexpectedly altogether. 
> 
> Also, having all those EMs and DTML Methods moved to the root Folder is
> nagging at me, I'd like to see those moved back.

FYI Here's a transcript of my session.  It's now converted to
use the "full" BTreeFolder.  BTreeFolder has a special method
that lets you replace any folder, _replaceFolder.

[shane@zope2 python]$ sudo python
Password:
Python 1.5.2 (#1, Sep 17 1999, 20:15:36)  [GCC egcs-2.91.66 19990314/Linux
(egcs
- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import ZServer, Zope
>>> app = Zope.app()
>>> from Products.BTreeFolder.BTreeFolder import _replaceFolder
>>> _replaceFolder(app, 'Members', type='full')
>>> app.Members
<BTreeFolder instance at 8569d38>
>>> len(app.Members._tree)
11117
>>> get_transaction().commit()

Then I moved the appropriate DTML and EM objects back into the Members
folder.

Shane