Commit 46dc143b authored by Roque's avatar Roque

erp5_officejs: configuration urls for portal types use traditional traverse mode

parent 0a7463ef
......@@ -66,9 +66,14 @@
/*jslint nomen: true*/
if (raw_dict.hasOwnProperty("_embedded") && raw_dict._embedded.hasOwnProperty("_view")) {
raw_fields = raw_dict._embedded._view;
type = raw_dict.type.name;
parent = raw_dict.parent.name;
/*jslint nomen: false*/
//TODO: unify structure between modes (traverse & appcache)
if (raw_dict._debug == "traverse") {
type = raw_dict._links.type.name;
parent = raw_dict._links.parent.name;
} else {
type = raw_dict.type.name;
parent = raw_dict.parent.name;
}
return_dict.parent_relative_url = "portal_types/" + parent;
return_dict.portal_type = type;
for (field_key in raw_fields) {
......
......@@ -250,12 +250,12 @@ jio_appcachestorage.js\n
#configuration resources\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_hal_json_style%2FBase_viewNewContentDialog&view=jio_view\n
\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%20Module&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%20Module%2F4&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%20Module&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%20Module%2F4&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_web_officejs_ui%2FWebPageModule_viewWebPageListAsJio&view=jio_view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%2F9&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%2F10&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%2F9&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%2F10&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_web_officejs_ui%2FWebPage_viewAsTextDocument&view=jio_view\n
\n
\n
......@@ -741,7 +741,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.57103.39065.37171</string> </value>
<value> <string>976.60431.37559.38195</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -759,7 +759,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1562328221.49</float>
<float>1562527656.62</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -118,12 +118,12 @@ CACHE:\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_hal_json_style%2FBase_viewNewContentDialog&view=jio_view\n
\n
#text editor\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%20Module&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%20Module%2F4&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%20Module&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%20Module%2F4&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_web_officejs_ui%2FWebPageModule_viewWebPageListAsJio&view=jio_view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%2F9&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_types%2FWeb%20Page%2F10&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%2F9&view=view\n
hateoas/ERP5Document_getHateoas?mode=traverse&relative_url=portal_types%2FWeb%20Page%2F10&view=view\n
hateoas/ERP5Document_getHateoas?mode=appcache&relative_url=portal_skins%2Ferp5_web_officejs_ui%2FWebPage_viewAsTextDocument&view=jio_view\n
\n
NETWORK:\n
......@@ -270,7 +270,7 @@ NETWORK:\n
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>976.57103.26283.40925</string> </value>
<value> <string>976.57227.25553.20036</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -288,7 +288,7 @@ NETWORK:\n
</tuple>
<state>
<tuple>
<float>1562328217.55</float>
<float>1562527641.88</float>
<string>UTC</string>
</tuple>
</state>
......
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