Commit 308be58f authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_base: support JS interface in Coordinate_asURL

See merge request !1226
parents 61bc472e c81766ad
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