Commit 77cd4c4a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Allow to select the source code editor to be used through Preferences.

parent c9bd0e15
......@@ -184,7 +184,9 @@
</item>
<item>
<key> <string>text_editor</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -239,11 +241,11 @@
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
<value> <string>style="width: 100%"</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>5</int> </value>
<value> <int>20</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
......@@ -267,7 +269,7 @@
</item>
<item>
<key> <string>text_editor</string> </key>
<value> <string>ace</string> </value>
<value> <string>text_area</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......@@ -283,7 +285,7 @@
</item>
<item>
<key> <string>width</string> </key>
<value> <int>40</int> </value>
<value> <int>60</int> </value>
</item>
</dictionary>
</value>
......@@ -304,4 +306,17 @@
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>editor_list = [("Plain Text", "text_area")]\n
\n
if getattr(context.portal_skins, "erp5_ace_editor", None) is not None:\n
editor_list.append(("Ace Editor", "ace"))\n
\n
return editor_list\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Preference_getAvailableSourceCodeEditorList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -68,6 +68,7 @@
<value>
<list>
<string>my_preferred_text_editor</string>
<string>my_preferred_source_code_editor</string>
<string>my_preferred_text_format</string>
</list>
</value>
......
2012-03-07 arnaud.fontaine
* Allow to choose preferred source code editor in Preference view.
* Use source code editor defined in Preference for Component_view.
2012-03-06 arnaud.fontaine
* Remove Accessor Component, Interface Component and Mixin Component Portal Types until implementation has been written.
......
41031
\ No newline at end of file
41032
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Standard Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/selection</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Preferred Source Code Editor</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_source_code_editor_property</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
<item>
<key> <string>preference</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>property_default</string> </key>
<value> <string>python: \'text_area\'</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Standard Property" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>elementary_type/tokens</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>List of possible values for preferred_source_code_editor</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>preferred_source_code_editor_selection_property</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value>
</item>
<item>
<key> <string>property_default</string> </key>
<value> <string>python: [\'text_area\', \'ace\']</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2012-03-07 arnaud.fontaine
* Add property to define preferred source code editor to Preference Property Sheets.
2012-03-06 arnaud.fontaine
* Add template_registered_version_priority_selection property to BusinessTemplate to define version and their priorities for ZODB Component only for now.
......
47
\ No newline at end of file
48
\ 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