repoze.folder is also a pretty good implementation you could just use. http://docs.repoze.org/folder/
Chris On Tue, Dec 24, 2013 at 12:03 PM, Tres Seaver <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/24/2013 04:39 AM, Gerhard Schmidt wrote: > > Hi > > > > i'm building a web application based on pyramid and traversal in a > > ZODB. So far it's working fine with Container derived from Persitent > > Mapping. But some containers will get many children so i'm trying to > > use a BTree based Container. So far no success. > > > > I've tried > > > > from BTrees.OOBTree import BTree from persistent import Persistent > > > > class container(BTree, Persistent) > > > > I'ts working but changes don't geht stored in the zodb. > > > > I there a example how to do this out there or can someone get mit a > > Hint what im missing. > > You don't need to derive from Persistent (BTree already does that for you). > > For an example, you could look at SubstanceD's Folder class: > > > https://github.com/Pylons/substanced/blob/master/substanced/folder/__init__.py > > > Tres. > - -- > =================================================================== > Tres Seaver +1 540-429-0999 [email protected] > Palladion Software "Excellence by Design" http://palladion.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlK5vkYACgkQ+gerLs4ltQ7v/gCeLTqTEhiuE2cUkdmckQajeQSS > 20sAn3CMv0x1gn38FplK2gbQgwHYDRgE > =+AAy > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.
