Re: Re: extending PersistentList

Christopher Lozinski <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
On 5/10/16 10:35 PM, Lars van Gemerden wrote:
>
>
> Sequence and its subclass MutableSequence is designed in such a way
> that by implementing the abstract methods (the methods implemented in
> PersistentList2), all other standard list methods (like extend,
> slicing, etc.) follow suit.

Your persistent List2 is a brilliant idea.  You are correct,
understanding and modifying the existing PersistentList class is way way
too complex.  I should know.  I did it.  Your PersistentList2 is so easy
to understand.  Congratulations.

This is part of a larger problem with the Zope Ecosystem.  It was just
not designed to be easy to understand.  Your persistentList2 is very
very easy to understand and modify.  In fact I am going to start using
it.   Is it on github?

I run Blogory.org/zodb The world's largest ZODB directory, part of the
world's largest Python directory.   I really need ordered lists.  I want
to be able to sort the items in order of importance.  The lists never
get very long.  Each of my categories has about 7 items in it.    Why
have I not done this yet?  Not sure.  There were a couple of different
Ordered List Solutions over the years, one by Zope Corporation.  It all
added to confusion.  I was not sure what to do.  Dictionaries were good
enough.
Your approach is easy, I can understand it.  I can modify it.   I will
start using it.

Thanks for the great idea.

Chris
 

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.