[ZODB-Dev] Mounted Storage and ClassFactory problems
Shane Hathaway
shane@zope.com
Tue, 21 May 2002 11:32:26 -0400
This is a multi-part message in MIME format.
--------------080900070808060604030104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtp.zope.com id g4LFWUm30447
J=FAlio Dinis Silva wrote:
>> My main objective is to have a MainData.fs with my Zclass based=20
>> >product, and instances of this product in a separated Data.fs.
>=20
>=20
> Any hints on how to achieve this?
Please try the attached patch, and if it works, I'll check it in. As it=20
was, it found the parent database but then looked in the child database=20
anyway! This corrects it.
Shane
--------------080900070808060604030104
Content-Type: application/x-java-vm;
name="patch"
Content-Disposition: inline;
filename="patch"
Content-Transfer-Encoding: base64
SW5kZXg6IE1vdW50LnB5Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnMtcmVwb3NpdG9y
eS9ab3BlL2xpYi9weXRob24vWk9EQi9Nb3VudC5weSx2CnJldHJpZXZpbmcgcmV2aXNpb24g
MS4xNApkaWZmIC11IC1yMS4xNCBNb3VudC5weQotLS0gTW91bnQucHkJMTEgRmViIDIwMDIg
MjM6NDA6NDIgLTAwMDAJMS4xNAorKysgTW91bnQucHkJMjEgTWF5IDIwMDIgMTU6MzA6MTEg
LTAwMDAKQEAgLTMyLDE1ICszMiwxNSBAQAogCiBkZWYgcGFyZW50Q2xhc3NGYWN0b3J5KGph
ciwgbW9kdWxlLCBuYW1lKToKICAgICAjIFVzZSB0aGUgY2xhc3MgZmFjdG9yeSBmcm9tIHRo
ZSBwYXJlbnQgZGF0YWJhc2UuCi0gICAgcGFyZW50X2RiID0gZ2V0YXR0cihnZXRhdHRyKGph
ciwgJ19tb3VudF9wYXJlbnRfamFyJywgTm9uZSksCi0gICAgICAgICAgICAgICAgICAgICAg
ICAnX2RiJywgTm9uZSkKKyAgICBwYXJlbnRfY29ubiA9IGdldGF0dHIoamFyLCAnX21vdW50
X3BhcmVudF9qYXInLCBOb25lKQorICAgIHBhcmVudF9kYiA9IGdldGF0dHIocGFyZW50X2Nv
bm4sICdfZGInLCBOb25lKQogICAgIGlmIHBhcmVudF9kYiBpcyBOb25lOgogICAgICAgICBf
Z2xvYmFscyA9IHt9CiAgICAgICAgIF9zaWxseSA9ICgnX19kb2NfXycsKQogICAgICAgICBy
ZXR1cm4gZ2V0YXR0cihfX2ltcG9ydF9fKAogICAgICAgICAgICAgbW9kdWxlLCBfZ2xvYmFs
cywgX2dsb2JhbHMsIF9zaWxseSksIG5hbWUpCiAgICAgZWxzZToKLSAgICAgICAgcmV0dXJu
IHBhcmVudF9kYi5fY2xhc3NGYWN0b3J5KGphciwgbW9kdWxlLCBuYW1lKQorICAgICAgICBy
ZXR1cm4gcGFyZW50X2RiLl9jbGFzc0ZhY3RvcnkocGFyZW50X2Nvbm4sIG1vZHVsZSwgbmFt
ZSkKIAogCiBjbGFzcyBNb3VudFBvaW50KFBlcnNpc3RlbmNlLlBlcnNpc3RlbnQsIEFjcXVp
c2l0aW9uLkltcGxpY2l0KToK
--------------080900070808060604030104--