Commit 83623631 authored by Jérome Perrin's avatar Jérome Perrin Committed by Gabriel Monnerat

ui_test_core: support updating snapshot image behind virtual host

With virtualhosting, there can be an empty path element at the beginning
of the path.
parent da7129d1
......@@ -3,7 +3,7 @@ portal = context.getPortalObject()
image_file = StringIO(image_data.replace('data:image/png;base64,', '').decode('base64'))
image_path = image_path.split('/')
image_path = [p for p in image_path.split('/') if p]
existing = portal.restrictedTraverse(image_path, None)
if existing is None:
......
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