Commit eca6024b authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: change Compute Node usage report columns

Show instance url_string and type.
Hide owner / image / creation_date
parent 2f123dd9
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<string>count_method</string> <string>count_method</string>
<string>default_params</string> <string>default_params</string>
<string>hide_rows_on_no_search_criterion</string> <string>hide_rows_on_no_search_criterion</string>
<string>lines</string>
<string>list_method</string> <string>list_method</string>
<string>portal_types</string> <string>portal_types</string>
<string>select</string> <string>select</string>
...@@ -88,6 +89,10 @@ ...@@ -88,6 +89,10 @@
<key> <string>hide_rows_on_no_search_criterion</string> </key> <key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>lines</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -106,6 +111,10 @@ ...@@ -106,6 +111,10 @@
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -129,10 +138,6 @@ ...@@ -129,10 +138,6 @@
<key> <string>columns</string> </key> <key> <string>columns</string> </key>
<value> <value>
<list> <list>
<tuple>
<string>software_release</string>
<string>Title</string>
</tuple>
<tuple> <tuple>
<string>url_string</string> <string>url_string</string>
<string>URL</string> <string>URL</string>
...@@ -180,6 +185,10 @@ ...@@ -180,6 +185,10 @@
<key> <string>hide_rows_on_no_search_criterion</string> </key> <key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>lines</string> </key>
<value> <int>50</int> </value>
</item>
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <value>
......
...@@ -382,7 +382,16 @@ ...@@ -382,7 +382,16 @@
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>creation_date</string>
<string>Instance Creation Date</string>
</tuple>
<tuple>
<string>ComputePartition_getOwnerName</string>
<string>Owner</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -409,18 +418,6 @@ ...@@ -409,18 +418,6 @@
<string>instance_tree_title</string> <string>instance_tree_title</string>
<string>Instance Tree</string> <string>Instance Tree</string>
</tuple> </tuple>
<tuple>
<string>image</string>
<string>Image</string>
</tuple>
<tuple>
<string>ComputePartition_getOwnerName</string>
<string>Owner</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Instance Creation Date</string>
</tuple>
<tuple> <tuple>
<string>ComputePartition_getLastestContactedDate</string> <string>ComputePartition_getLastestContactedDate</string>
<string>Latest Contact Date</string> <string>Latest Contact Date</string>
...@@ -534,7 +531,7 @@ ...@@ -534,7 +531,7 @@
</item> </item>
<item> <item>
<key> <string>lines</string> </key> <key> <string>lines</string> </key>
<value> <int>10</int> </value> <value> <int>100</int> </value>
</item> </item>
<item> <item>
<key> <string>list_action</string> </key> <key> <string>list_action</string> </key>
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: cell.getAggregateRelatedTitle(portal_type=["Software Instance"])</string> </value> <value> <string>python: \'; \'.join([\'%s - %s\' % (x.getUrlString(), x.getSourceReference()) for x in cell.getAggregateRelatedValueList(portal_type=["Software Instance"]) if x is not None])</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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