[ZODB-Dev] Persistent unhashable?
Christian Robottom Reis
kiko@async.com.br
Wed, 4 Jul 2001 21:30:07 -0300 (BRT)
On Tue, 3 Jul 2001, Greg Ward wrote:
> to our standard persistent base class. (Rather than having all of our
> database classes derive directly from Persistent, we use an intermediary
> class, precisely to allow this sort of customization. Phew, that was a
> lucky design choice!)
Are there any caveats in implementing an intermediary class like this?
What do I need to upcall? For the while, I'm building a class like:
class Persistent(Persistence.Persistent):
def __init__(self):
Persistence.Persistent.__init__(self)
def __hash__(self):
generate_hash()
Will this work? Almost? :-)
Take care,
--
/\/\ Christian Reis, Senior Engineer, Async Open Source, Brazil
~\/~ http://async.com.br/~kiko/ | [+55 16] 274 4311