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():
break
if found:
result = instance.SoftwareInstance_getConnectionParameterList(type,
relative_url=context.getRelativeUrl())
result = instance.SoftwareInstance_getConnectionParameterList(
relative_url=context.getRelativeUrl(), raw=raw)
return result
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>type=None, **kwargs</string> </value>
<value> <string>raw=False, **kwargs</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -14,11 +14,10 @@ if relative_url == None:
relative_url = context.getRelativeUrl()
for k in sorted(connection_dict):
if type == 'info' and not k.endswith('_info'):
continue
elif not type and k.endswith('_info'):
continue
d = newTempDocument(portal, relative_url)
d.edit(connection_key=k, connection_value=connection_dict[k])
if raw:
d = {"connection_key": k, "connection_value": connection_dict[k]}
else:
d = newTempDocument(portal, relative_url)
d.edit(connection_key=k, connection_value=connection_dict[k])
return_list.append(d)
return return_list
......@@ -50,7 +50,7 @@
</item>
<item>
<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>
<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