Commit e4df9d77 authored by Jérome Perrin's avatar Jérome Perrin

fixup! web_shadir: PY3 compatibility

parent a303116f
...@@ -44,7 +44,6 @@ class ShaDirMixin(object): ...@@ -44,7 +44,6 @@ class ShaDirMixin(object):
Initialize the ERP5 site. Initialize the ERP5 site.
""" """
self.login() self.login()
self.portal = self.getPortal()
self.key = 'mykey' + str(random.random()) self.key = 'mykey' + str(random.random())
self.file_content = b'This is the content.' self.file_content = b'This is the content.'
...@@ -64,7 +63,7 @@ class ShaDirMixin(object): ...@@ -64,7 +63,7 @@ class ShaDirMixin(object):
'architecture': self.architecture}), 'architecture': self.architecture}),
b64encode(b"User SIGNATURE goes here.").decode()] b64encode(b"User SIGNATURE goes here.").decode()]
self.data = json.dumps(self.data_list) self.data = json.dumps(self.data_list).encode()
self.sha512sum = hashlib.sha512(self.data).hexdigest() self.sha512sum = hashlib.sha512(self.data).hexdigest()
self.header_dict = { self.header_dict = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment