hi all! from the silence after my last question i deduct that there is no zodb-optimized list type that preserves list order.
if that's actually the case, i'll have to use OOTreeSet and their .keys() for those oid lists where i don't care about ordering and still use PersistentLists for those where i care about ordering. to make as little code changes necessary as possible, is it a good plan to have a OidList class with two sublcasses OrderedOidList(PersistentList) and UnOrderedOidListsubclass(OOTreeSet) and give them a list like protocol (.add(), .remove(), .has()) regards, juergen herrmann [ Tim Peters wrote:] > [fwd'ing private msg, since it appears to have been intended to > go to the list] > > -----Original Message----- > From: Jürgen Herrmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 23, 2005 7:31 AM > To: Tim Peters > Subject: RE: [ZODB-Dev] python types question > > hi! > > first of all, thanks to everybody who replied to my message. > i experimented a bit with OOBTree and OOTreeSet. OOBTree is surely > fine for the mapping part of what i need. > But i think OOTreeSet doesn't fit as a replacement for PersistentList > because i need the oids in the list to maintain their order. i want > to be able to change the order of oids in the lists, too. > > any further hints what to use instead of OOTreeSet then? > > regards, juergen herrmann > > > _______________________________________________________________________ > >>> XLhost.de - eXperts in Linux hosting << > > Jürgen Herrmann > Bruderwöhrdstraße 15b, DE-93051 Regensburg > > Fon: +49 (0)700 XLHOSTDE [0700 95467833] > Fax: +49 (0)721 151 463027 > WEB: http://www.XLhost.de > > _______________________________________________ > For more information about ZODB, see the ZODB Wiki: > http://www.zope.org/Wikis/ZODB/ > > ZODB-Dev mailing list - ZODB-Dev@zope.org > http://mail.zope.org/mailman/listinfo/zodb-dev > _______________________________________________________________________ >> XLhost.de - eXperts in Linux hosting << Jürgen Herrmann Bruderwöhrdstraße 15b, DE-93051 Regensburg Fon: +49 (0)700 XLHOSTDE [0700 95467833] Fax: +49 (0)721 151 463027 WEB: http://www.XLhost.de _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev