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

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 4922dd5b
......@@ -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