Thanks Marc,
I have patched the python code, it should now be compatible with BaseX 8.0.
Christian
On Mon, Dec 29, 2014 at 5:35 PM, Marc van Grootel marc.van.grootel@gmail.com wrote:
Hi,
Seems to work fine. At least, I didn't introduce any issues that weren't already there. I didn't find the email address of the maintainer I attach the file to this post. I have checked on recent snapshot of 8.0 and 7.9.
If you want me to submit it differently or have me create a pull request let me know.
Here's the diff
120c120
< timestamp = self.recv_c_str()
response = self.recv_c_str().split(':')
124,126c124,133 < #FIXME: should we allow to customize password encoding? < hfun.update(hashlib.md5(password.encode('us-ascii')).hexdigest().encode('us-ascii'))
< hfun.update(timestamp.encode('us-ascii'))
if len(response) > 1: code = "%s:%s:%s" % (user,response[0],password) nonce = response[1] else: code = password nonce = response[0] hfun.update(hashlib.md5(code.encode('us-ascii')).hexdigest().encode('us-ascii')) hfun.update(nonce.encode('us-ascii'))
374c381 < return result \ No newline at end of file
return result