Commit c81766ad authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

erp5_base: support JS interface in Coordinate_asURL

parent b6462ae3
if hasattr(context, 'asURL') :
return context.asURL()
return None
if not hasattr(context, 'asURL'):
if url_dict:
# new JS interface needs dict
return {}
return None
if url_dict:
return {
'command': 'raw',
'options': {
'url': context.asURL()
}
}
return context.asURL()
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>brain, selection=None, selection_name=None, **kwd</string> </value>
<value> <string>brain, url_dict=False, selection=None, selection_name=None, **kwd</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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