Commit 140c4823 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_hal_json_style] Do not convert None to a string

parent 5a82a53c
...@@ -1272,7 +1272,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None, ...@@ -1272,7 +1272,8 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
if relative_url: if relative_url:
try: try:
traversed_document = site_root.restrictedTraverse(str(relative_url)) traversed_document = site_root.restrictedTraverse(str(relative_url))
view = str(view) if (view is not None):
view = str(view)
is_site_root = False is_site_root = False
except: except:
raise NotImplementedError(relative_url) raise NotImplementedError(relative_url)
......
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