Commit 14ad0564 authored by Romain Courteaud's avatar Romain Courteaud

Improve usability of software instance management

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42417 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 115fe680
...@@ -102,22 +102,10 @@ ...@@ -102,22 +102,10 @@
<string>image</string> <string>image</string>
<string>Image</string> <string>Image</string>
</tuple> </tuple>
<tuple>
<string>start_button</string>
<string>Start</string>
</tuple>
<tuple>
<string>stop_button</string>
<string>Stop</string>
</tuple>
<tuple> <tuple>
<string>status</string> <string>status</string>
<string>Status</string> <string>Status</string>
</tuple> </tuple>
<tuple>
<string>destroy_button</string>
<string>Destroy</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
...@@ -125,18 +113,6 @@ ...@@ -125,18 +113,6 @@
<key> <string>editable_columns</string> </key> <key> <string>editable_columns</string> </key>
<value> <value>
<list> <list>
<tuple>
<string>start_button</string>
<string>Start</string>
</tuple>
<tuple>
<string>stop_button</string>
<string>Stop</string>
</tuple>
<tuple>
<string>destroy_button</string>
<string>Destroy</string>
</tuple>
<tuple> <tuple>
<string>action_button</string> <string>action_button</string>
<string>Action</string> <string>Action</string>
...@@ -209,10 +185,7 @@ ...@@ -209,10 +185,7 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="Method" module="Products.Formulator.MethodField"/>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
......
...@@ -132,9 +132,7 @@ ...@@ -132,9 +132,7 @@
</item> </item>
<item> <item>
<key> <string>enabled</string> </key> <key> <string>enabled</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>external_validator</string> </key> <key> <string>external_validator</string> </key>
...@@ -263,10 +261,7 @@ ...@@ -263,10 +261,7 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -277,20 +272,4 @@ ...@@ -277,20 +272,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.SoftwareInstance_getStatus() in {\'started\': None, \'stopped\': None}</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list/> <list>
<string>default</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -50,6 +52,12 @@ ...@@ -50,6 +52,12 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -69,6 +77,10 @@ ...@@ -69,6 +77,10 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_section_title</string> </value> <value> <string>my_section_title</string> </value>
...@@ -87,4 +99,21 @@ ...@@ -87,4 +99,21 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python:"<h1>Partitions installed for: %s</h1>" % (context.getTranslatedTitle())
]]></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list> <list>
<string>my_text_content</string>
<string>my_start_button</string> <string>my_start_button</string>
<string>my_stop_button</string> <string>my_stop_button</string>
<string>my_destroy_button</string> <string>my_destroy_button</string>
...@@ -111,6 +110,7 @@ ...@@ -111,6 +110,7 @@
<key> <string>right width100 alignr</string> </key> <key> <string>right width100 alignr</string> </key>
<value> <value>
<list> <list>
<string>my_text_content</string>
<string>my_update_button</string> <string>my_update_button</string>
</list> </list>
</value> </value>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>default</string> <string>default</string>
<string>enabled</string>
<string>name</string> <string>name</string>
<string>title</string> <string>title</string>
</list> </list>
...@@ -63,6 +64,12 @@ ...@@ -63,6 +64,12 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -74,9 +81,13 @@ ...@@ -74,9 +81,13 @@
<item> <item>
<key> <string>href</string> </key> <key> <string>href</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>name</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>
...@@ -100,6 +111,10 @@ ...@@ -100,6 +111,10 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string>Destroy</string> </value> <value> <string>Destroy</string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_input_button_field</string> </value> <value> <string>my_input_button_field</string> </value>
...@@ -131,6 +146,19 @@ ...@@ -131,6 +146,19 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.SoftwareInstance_getStatus() in ("Started", "Stopped")</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<value> <value>
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>editable</string>
<string>title</string> <string>title</string>
</list> </list>
</value> </value>
...@@ -76,6 +77,10 @@ ...@@ -76,6 +77,10 @@
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string>inline</string> </value> <value> <string>inline</string> </value>
</item> </item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value> <value> <string>my_string_field</string> </value>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>default</string> <string>default</string>
<string>enabled</string>
<string>name</string> <string>name</string>
<string>title</string> <string>title</string>
</list> </list>
...@@ -63,6 +64,12 @@ ...@@ -63,6 +64,12 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -74,9 +81,13 @@ ...@@ -74,9 +81,13 @@
<item> <item>
<key> <string>href</string> </key> <key> <string>href</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>name</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>
...@@ -100,6 +111,10 @@ ...@@ -100,6 +111,10 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string>Start</string> </value> <value> <string>Start</string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_input_button_field</string> </value> <value> <string>my_input_button_field</string> </value>
...@@ -131,6 +146,19 @@ ...@@ -131,6 +146,19 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.SoftwareInstance_getStatus() == "Stopped"</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>default</string> <string>default</string>
<string>enabled</string>
<string>name</string> <string>name</string>
<string>title</string> <string>title</string>
</list> </list>
...@@ -63,6 +64,12 @@ ...@@ -63,6 +64,12 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -74,9 +81,13 @@ ...@@ -74,9 +81,13 @@
<item> <item>
<key> <string>href</string> </key> <key> <string>href</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>name</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>
...@@ -100,6 +111,10 @@ ...@@ -100,6 +111,10 @@
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string>Stop</string> </value> <value> <string>Stop</string> </value>
</item> </item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_input_button_field</string> </value> <value> <string>my_input_button_field</string> </value>
...@@ -131,6 +146,19 @@ ...@@ -131,6 +146,19 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.SoftwareInstance_getStatus() == "Started"</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
......
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
</item> </item>
<item> <item>
<key> <string>height</string> </key> <key> <string>height</string> </key>
<value> <int>50</int> </value> <value> <int>5</int> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>XML</string> </value> <value> <string>Parameter XML</string> </value>
</item> </item>
<item> <item>
<key> <string>unicode</string> </key> <key> <string>unicode</string> </key>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<value> <value>
<list> <list>
<string>css_class</string> <string>css_class</string>
<string>editable</string>
<string>title</string> <string>title</string>
</list> </list>
</value> </value>
...@@ -76,6 +77,10 @@ ...@@ -76,6 +77,10 @@
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string>inline</string> </value> <value> <string>inline</string> </value>
</item> </item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_string_field</string> </value> <value> <string>my_string_field</string> </value>
......
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string></string> </value> <value> <string>inline</string> </value>
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
...@@ -281,16 +281,13 @@ ...@@ -281,16 +281,13 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: context.ERP5Site_formatXmlWithLint(context.getConnectionXml())</string> </value> <value> <string>python: context.getConnectionXml()</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
<value> <string></string> </value> <value> <string>inline</string> </value>
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
<string>default</string> <string>default</string>
<string>required</string> <string>required</string>
<string>title</string> <string>title</string>
<string>width</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -111,6 +112,10 @@ ...@@ -111,6 +112,10 @@
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Address</string> </value> <value> <string>Address</string> </value>
</item> </item>
<item>
<key> <string>width</string> </key>
<value> <int>30</int> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -59,9 +59,10 @@ body{ font-family:Arial,Helvetica,sans-serif;\n ...@@ -59,9 +59,10 @@ body{ font-family:Arial,Helvetica,sans-serif;\n
font-weight:bold}\n font-weight:bold}\n
h1{color:#2e707c}\n h1{color:#2e707c}\n
h2{color:#3e95a5}\n h2{color:#3e95a5}\n
input,textarea{font-size:18px;color:#8D8D8D}\n input{font-size:18px;color:#8D8D8D}\n
textarea{color:#8D8D8D}\n
input{height:26px;}\n input{height:26px;}\n
textarea{height:77px;width:247px;}\n /* textarea{height:77px;width:247px;} */\n
fieldset{border:none;}\n fieldset{border:none;}\n
a img{border : 0 none;cursor : pointer;}\n a img{border : 0 none;cursor : pointer;}\n
\n \n
......
249 251
\ No newline at end of file \ No newline at end of file
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