[ZODB-Dev] __dict__ sharing between persistent and nonpersistent
objects
kotamura kotamura
kotamuraa at yahoo.co.jp
Sat Dec 10 18:16:12 EST 2005
Hello,
I'm now thinking of using ZODB for our application.
Is it possible to make something like this?
http://hohehohe2.hp.infoseek.co.jp/kerama/misc/shareddict.jpg
There are data in a DataHolder object that needs to be
saved.
DataHolder is not a subclass of Persistent but each data
stored in
its attribute is persistent. A PersistentDataholder is a
subclass
of ZODB Persistent which instance works as a proxy of a
DataHolder object
and it is under ZODB control.
There are two reasons I want to do this: a DataHolder
object
frequently changes it's __class__ or __bases__, and I'd
like to make this
module storage independent. I know it loses some of ZODB
features, automatic
_p_changed setting for instance, still ZODB is the best
option if we
can do this.
I think it's o.k. because if we look at how references are
made, it
is just a normal design using zodb, but it looks weird so
I'd like to
know if it is really o.k.
Well I looked for a mailing list that *uses* ZODB, not
that *makes* ZODB but
couldn't find one. If this mailing list is not an
appopriate one for a question
like this, please just let me know.
Koichi
--------------------------------------
STOP HIV/AIDS.
Yahoo! JAPAN Redribbon Campaign 2005
http://pr.mail.yahoo.co.jp/redribbon/
More information about the ZODB-Dev
mailing list