[Zope-dev] Manual object-to-relational persistency framework

Myroslav Opyr myroslav@zope.net.ua
Fri, 08 Mar 2002 11:51:53 +0200


Thomas F=F6rster wrote:

>On Friday, 8. March 2002 09:50, Bjorn Stabell wrote:
>
>>I'm trying to use Zope without storing everything in ZODB while still
>>having the perception of an object-oriented database.  I want to contro=
l
>>the object-to-relational mapping layer, but would like the loading and
>>saving of objects to be automatic.  Is there some way to do that using
>>Zope?
>>
>>Where would I, e.g., hook into to get automatic loading/cacheing/saving
>>of objects that weren't stored in ZODB, and where I could actually
>>create the methods to load/save objects myself (I want to control the
>>data structure).
>>
>If you want to control the mapping, just define your own Storage (I do n=
ot=20
>know how hard it is, maybe the 'gurus' do?) and then tweak your Zope ins=
tance=20
>to use your custom Storage instead of the default FileStorage.
>That way you do not have to care about automatic loading/saving of your=20
>objects.
>
One suggestion more: not use instead of FileStorage but in addition to=20
main storage. You can see how external storages are mounted into ZODB as=20
subtrees at http://www.zope.org/About (Wikis@zope.org are mounted just=20
in that way).
--=20
Myroslav Opyr
zope.net.ua <http://zope.net.ua/> =B0 Ukrainian Zope Hosting
e-mail: myroslav@zope.net.ua <mailto:myroslav@zope.net.ua>
cell: +380 50.3174578