Morten W. Petersen wrote:

> [Erik Enge]
> 
> | Can't you just subclass the BTree Folder as you would with OFS.Folder?
> | 
> | I think you might be confusing the Zope BTree implementation with the
> | BTree Folder Product?
> 
> I've tried subclassing BTreeFolder, but then, whenever the object is
> accessed, zope falls flat on its face.  :-\

If you're deriving from BTree, make sure that the class BTree's __init__ method gets 
called.
Otherwise, there will be no BTree obeject to store your data in.

Does your class have an __init__ method? If so, you need to put as its first line:
  
  MyClass.inheritedAttribute('__init__')(self)

Where MyClass is the name of your class.

--
Steve Alexander
Software Engineer
Cat-Box limited


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to