from ZODB import PersistentList
Interesting. I'll look at this idea. I never heard of this class.
You could then have NumberOfProperties become a ComputedAttribute
But AFAIK, ComputedAttributes don't support write methods.
Um, are you saying that the solution would actually not work for my use case?
So client code can't write "someArticle.NumberOfReaders += 1". But then, you wouldn't be able to do that with a SQL-based solution either.
Why not? It's easy to write ZSQL method to update data. Probably we do not understand each other.
--
Milos Prudek
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )