[ZODB-Dev] ZEO2 clientstorage parameters

Guido van Rossum guido@python.org
Thu, 19 Sep 2002 17:30:23 -0400


> 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?

I think this is a reasonable request.  I'll change ZEO 2 so that you
can specify debug (which will merely log a warning if not false) and
you can specify wait_for_server_on_startup.  The preferred name for
the latter will still be wait.

--Guido van Rossum (home page: http://www.python.org/~guido/)