[Zope] Re: Zeo and conflict resolution (was "suddenly confused")
Tres Seaver
tseaver at palladion.com
Wed Jan 30 14:17:35 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ricardo Newbery wrote:
> Okay, then assuming you've installed ZEO from Zope software,
> if your third-party product includes conflict resolution by
> instantiating a class defined in the Zope product directory, then is
> it also safe to assume that this product resolution is still
> available to the ZEO server? For example, if I have the following in
> MyProduct:
>
> from BTrees import Length
>
> class MyClass(...):
> _count = None
>
> def incrementCount(self):
> if self._count is None:
> self._count = Length.Length()
> self._count.change(1)
>
> def getCount(self):
> return self._count()
>
> Then do I have to make MyProduct.MyClass available to ZEO or is it
> enough that BTrees.Length is available?
That is enough: the Length class derives from Persistent, which means
that handle their own conflict resolution: as long as your product doss
no conflict resolution of its own, it doesn't need to be imported by the
storage server.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHoM1P+gerLs4ltQ4RAhvmAJ0UFSz0EC+uO926RNIJviXl+2spWACfT62H
9CCDJ5vj+37LgnSASYUFQWw=
=8qmF
-----END PGP SIGNATURE-----
More information about the Zope
mailing list