Commit 9a98c766 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: No custom types on Connection Parameters

The information can come to listbox or come as RAW to the query, allowing us to hight light some informations.
parent c478177d
...@@ -7,7 +7,7 @@ for instance in context.getPredecessorValueList(): ...@@ -7,7 +7,7 @@ for instance in context.getPredecessorValueList():
break break
if found: if found:
result = instance.SoftwareInstance_getConnectionParameterList(type, result = instance.SoftwareInstance_getConnectionParameterList(
relative_url=context.getRelativeUrl()) relative_url=context.getRelativeUrl(), raw=raw)
return result return result
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>type=None, **kwargs</string> </value> <value> <string>raw=False, **kwargs</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -14,11 +14,10 @@ if relative_url == None: ...@@ -14,11 +14,10 @@ if relative_url == None:
relative_url = context.getRelativeUrl() relative_url = context.getRelativeUrl()
for k in sorted(connection_dict): for k in sorted(connection_dict):
if type == 'info' and not k.endswith('_info'): if raw:
continue d = {"connection_key": k, "connection_value": connection_dict[k]}
elif not type and k.endswith('_info'): else:
continue d = newTempDocument(portal, relative_url)
d = newTempDocument(portal, relative_url) d.edit(connection_key=k, connection_value=connection_dict[k])
d.edit(connection_key=k, connection_value=connection_dict[k])
return_list.append(d) return_list.append(d)
return return_list return return_list
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>type=None, relative_url=None, **kwargs</string> </value> <value> <string>relative_url=None, raw=False, **kwargs</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