[ZODB-Dev] Attempt to store an object from a foreign database connection

Gennady Kovalev gik@freehand.ru
Wed, 29 May 2002 17:02:06 +0400


Hello.

Can you tell me where is the error? I think it is at ZODB.

Error Type: InvalidObjectReference
Error Value: Attempt to store an object from a foreign database
connection

I have my zope product with:

Imports...

class Test(Item):
	""" =D0=D2=C9=D7=C5=D4 """
	meta_type=3D"xxx"
	def __init__(self):
=09
self.getDictonary=3DSQL('getDictonary','sdf','db','','select * from
table');
=09
	def Get(self):
		return self.Dictonary

And PageTemplate:

<span tal:repeat=3D"v here/Get">
...
</span>

At first time, after product refresh, it is ok. But after some reloades,
or any time when I walk site and return at this object of my product, I
have this error. Can you help me?

Gennady