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

erp5_base: support JS interface in Coordinate_asURL

parent b6462ae3
if hasattr(context, 'asURL') : if not hasattr(context, 'asURL'):
return context.asURL() if url_dict:
return None # 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 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <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>
<item> <item>
<key> <string>id</string> </key> <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