[ZODB-Dev] Sorting IOBtree items

Pierre-Yves Delens py.delens at lienterfaces.be
Wed Apr 13 06:19:54 EDT 2005


Bonjour,

I'm developing my first ZODB app (without Zope).
I need to display sorted items from a BTree.
Sorting should happen by one of the fields value, not by key order.
Reading Btrees doc and googling about Btrees + IndexedCatalog didn't help
me.
I must admit that until now I didn't use IndexedCatalog standalone.

Q?:
- Is IndexedCatalog the good solution ?
- Is there a more direct way to do ?

As I usually put the BTree items in an array (I mean a 2D Python list) prior
to sending it to HTML/XUL templating code, I guess I could manage the
sorting at this stage.
But I presume this is not the best way (performance, code maintenance) to
do.
Q?: Is this right?

Thanks on forward
___________________________________________________
P-Y Delens, ing-arch. manager

LIENTERFACES - PY Delens, sprl
Avenue Dolez, 243  -  1180   Bruxelles

mail : py.delens at lienterfaces.be
web : www.lienterfaces.be
___________________________________________________




More information about the ZODB-Dev mailing list