Commit aac8ae4d authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: simplify configuration by not requiring to fill the hateoas url in the preferences

parent 2a802572
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_jio_fast_input</string> <string>action_type/object_onlyjio_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_jio_fast_input</string> </value> <value> <string>object_onlyjio_action</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
...@@ -17,7 +17,7 @@ if slapos_master_api is None: ...@@ -17,7 +17,7 @@ if slapos_master_api is None:
# This url is only used to call 1 (one) python script. # This url is only used to call 1 (one) python script.
# it could be whatever url able to reach erp5 # it could be whatever url able to reach erp5
slapos_master_web_url = portal.portal_preferences.getPreferredHateoasUrl(None) slapos_master_web_url = portal.portal_preferences.getPreferredHateoasUrl(web_site.absolute_url())
if slapos_master_web_url is None: if slapos_master_web_url is None:
return context.Base_redirect( return context.Base_redirect(
keep_items={ keep_items={
......
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