[Zope] BTreeFolder (easy?) questions

Kapil Thangavelu kthangavelu@earthlink.net
Wed, 27 Sep 2000 13:57:15 -0700

Dennis Nichols wrote:
> 1. Can I blithely use BTreeFolder in place of Folder without loss of
> functionality?

afaik, yes. btreefolders subclass from folders and reimplement the
setOb, getOb methods of a folder and the __getattr__ method, ie they
have the same external interface.

> 2. Can I successfully inherit from BTreeFolder in ZClasses (assuming that I
> uncomment registerBaseClass, which has been commented out in all
> BTreeFolder versions so far)?

can't think of any reasons why not, although you might might want to
consider composition so you can allow yourself room to transition based
on experience.