erp5_*: Migrate code editor to renderJS gadget fields on Python Scripts
It requires to include codemirror python syntax highlighting
Showing
... | ... | @@ -2,10 +2,19 @@ |
<ZopeData> | ||
<record id="1" aka="AAAAAAAAAAE="> | ||
<pickle> | ||
<global name="EditorField" module="Products.ERP5Form.EditorField"/> | ||
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/> | ||
</pickle> | ||
<pickle> | ||
<dictionary> | ||
<item> | ||
<key> <string>delegated_list</string> </key> | ||
<value> | ||
<list> | ||
<string>description</string> | ||
<string>title</string> | ||
</list> | ||
</value> | ||
</item> | ||
<item> | ||
<key> <string>id</string> </key> | ||
<value> <string>my_body</string> </value> | ||
... | ... | @@ -18,22 +27,6 @@ |
<key> <string>external_validator_failed</string> </key> | ||
<value> <string>The input failed the external validator.</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>line_too_long</string> </key> | ||
<value> <string>A line was too long.</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>required_not_found</string> </key> | ||
<value> <string>Input is required but no input given.</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>too_long</string> </key> | ||
<value> <string>You entered too many characters.</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>too_many_lines</string> </key> | ||
<value> <string>You entered too many lines.</string> </value> | ||
</item> | ||
</dictionary> | ||
</value> | ||
</item> | ||
... | ... | @@ -42,79 +35,15 @@ |
<value> | ||
<dictionary> | ||
<item> | ||
<key> <string>alternate_name</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>css_class</string> </key> | ||
<key> <string>field_id</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>default</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>description</string> </key> | ||
<key> <string>form_id</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>editable</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>enabled</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>external_validator</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>extra</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>height</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>hidden</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_length</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_linelength</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_lines</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>required</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>text_editor</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>title</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>unicode</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>whitespace_preserve</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>width</string> </key> | ||
<key> <string>target</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
</dictionary> | ||
... | ... | @@ -124,36 +53,16 @@ |
<key> <string>tales</string> </key> | ||
<value> | ||
<dictionary> | ||
<item> | ||
<key> <string>alternate_name</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>css_class</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>default</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>description</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>editable</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>enabled</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>external_validator</string> </key> | ||
<key> <string>field_id</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>extra</string> </key> | ||
<key> <string>form_id</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
... | ... | @@ -161,47 +70,13 @@ |
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>hidden</string> </key> | ||
<key> <string>target</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_length</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_linelength</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_lines</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>required</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>text_editor</string> </key> | ||
<value> | ||
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> | ||
</value> | ||
</item> | ||
<item> | ||
<key> <string>title</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>unicode</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>whitespace_preserve</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>width</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
</dictionary> | ||
</value> | ||
</item> | ||
... | ... | @@ -209,81 +84,29 @@ |
<key> <string>values</string> </key> | ||
<value> | ||
<dictionary> | ||
<item> | ||
<key> <string>alternate_name</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>css_class</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>default</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>description</string> </key> | ||
<value> <string></string> </value> | ||
<value> <string>Script code</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>editable</string> </key> | ||
<value> <int>1</int> </value> | ||
<key> <string>field_id</string> </key> | ||
<value> <string>my_text_content</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>enabled</string> </key> | ||
<value> <int>1</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>external_validator</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>extra</string> </key> | ||
<value> <string>style="width: 100%"</string> </value> | ||
<key> <string>form_id</string> </key> | ||
<value> <string>Base_viewWebFieldLibrary</string> </value> | ||
|
||
</item> | ||
<item> | ||
<key> <string>height</string> </key> | ||
<value> <int>20</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>hidden</string> </key> | ||
<value> <int>0</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_length</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_linelength</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>max_lines</string> </key> | ||
<value> <string></string> </value> | ||
</item> | ||
<item> | ||
<key> <string>required</string> </key> | ||
<value> <int>0</int> </value> | ||
<value> <int>40</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>text_editor</string> </key> | ||
<value> <string>text_area</string> </value> | ||
<key> <string>target</string> </key> | ||
<value> <string>Click to edit the target</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>title</string> </key> | ||
<value> <string>Body</string> </value> | ||
</item> | ||
<item> | ||
<key> <string>unicode</string> </key> | ||
<value> <int>0</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>whitespace_preserve</string> </key> | ||
<value> <int>1</int> </value> | ||
</item> | ||
<item> | ||
<key> <string>width</string> </key> | ||
<value> <int>60</int> </value> | ||
<value> <string>Script</string> </value> | ||
</item> | ||
</dictionary> | ||
</value> | ||
... | ... | @@ -291,17 +114,4 @@ |
</dictionary> | ||
</pickle> | ||
</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>python: here.portal_preferences.getPreferredSourceCodeEditor()</string> </value> | ||
</item> | ||
</dictionary> | ||
</pickle> | ||
</record> | ||
</ZopeData> |