[zope2-tracker] [Bug 1152193] Re: ZPublisher.Client.call discards HTTP method argument

Martijn Pieters launchpad.net at zopatista.com
Mon Mar 18 10:05:33 UTC 2013


I would preserve the original argument ordering; so keep `username=None,
password=None` at the front of the `call()` function signature.

That would let code using `call()` with *positional* arguments continue
to work. If any code uses `Client.call('some/url', 'username',
'password')` then suddenly the username and password are being
interpreted as the `arguments` and `method` keyword parameters instead.
Change the `call()` signature to:

    def call(url, username=None, password=None, arguments=(),
method=None, timeout=None, **kw)

I don't expect there to be *much* code using this, but there is no point
in breaking any that does.

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1152193

Title:
  ZPublisher.Client.call discards HTTP method argument

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1152193/+subscriptions


More information about the zope2-tracker mailing list