[ZODB-Dev] ZEO2 clientstorage parameters

Barry A. Warsaw barry@zope.com
Thu, 19 Sep 2002 17:32:07 -0400


>>>>> "CM" == Chris McDonough <chrism@zope.com> writes:

    CM> If this is not desirable, is there a recommended reliable way
    CM> to detect whether "import ZEO" (or "from ZEO.ClientStorage
    CM> import ClientStorage" or whatever) is getting you ZEO1 or
    CM> ZEO2?

import ZEO
if hasattr(ZEO, 'version'):
    # it's ZEO2

-Barry