[ZODB-Dev] ZEO2 clientstorage parameters

Chris McDonough chrism@zope.com
Thu, 19 Sep 2002 17:21:17 -0400


Jeremy,

I'm wondering if it would be possible to change the ZEO 2
ClientStorage __init__ method parameters to be more similar to those
for ZEO 1...

The reason I ask is because the argument list appears to be
near-same except for a "debug" parameter from ZEO1 that has no
analogue in ZEO2 and the change of "wait_for_server_on_startup" in
ZEO1 to "wait" in ZEO2. These are minor changes, but they cause
breakage for anyone who has a custom_zodb.py that specifies any of
these arguments.  It would be nice if they would just be the same
(maybe with a warning if debug= is passed into ZEO2's
ClientStorage).

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

- C