From fea7b17507998b3a107199331f31b9ddf30ed70f Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Mon, 8 Nov 2010 12:02:41 +0000 Subject: [PATCH] 2010-11-08 gabriel * The initial commit git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40023 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_web/WebIllustration_viewEditor.xml | 146 ++++++++ .../my_text_content.xml | 280 ++++++++++++++++ .../text_content.xml | 311 ++++++++++++++++++ .../portal_skins/erp5_svg_editor.xml | 26 ++ .../WebIllustration_renderSVGEditor.xml | 129 ++++++++ .../erp5_svg_editor/svg-editor.erp5.js.xml | 85 +++++ .../erp5_svg_editor/svg_edit_form_view.xml | 92 ++++++ bt5/erp5_svg_editor/bt/change_log | 2 + bt5/erp5_svg_editor/bt/copyright_list | 1 + bt5/erp5_svg_editor/bt/dependency_list | 2 + bt5/erp5_svg_editor/bt/description | 1 + bt5/erp5_svg_editor/bt/license | 1 + bt5/erp5_svg_editor/bt/maintainer_list | 1 + bt5/erp5_svg_editor/bt/revision | 1 + .../bt/template_format_version | 1 + bt5/erp5_svg_editor/bt/template_path_list | 2 + bt5/erp5_svg_editor/bt/template_skin_id_list | 1 + bt5/erp5_svg_editor/bt/title | 1 + bt5/erp5_svg_editor/bt/version | 1 + 19 files changed, 1084 insertions(+) create mode 100644 bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor.xml create mode 100644 bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/my_text_content.xml create mode 100644 bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml create mode 100644 bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor.xml create mode 100644 bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/WebIllustration_renderSVGEditor.xml create mode 100644 bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml create mode 100644 bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_edit_form_view.xml create mode 100644 bt5/erp5_svg_editor/bt/change_log create mode 100644 bt5/erp5_svg_editor/bt/copyright_list create mode 100644 bt5/erp5_svg_editor/bt/dependency_list create mode 100644 bt5/erp5_svg_editor/bt/description create mode 100644 bt5/erp5_svg_editor/bt/license create mode 100644 bt5/erp5_svg_editor/bt/maintainer_list create mode 100644 bt5/erp5_svg_editor/bt/revision create mode 100644 bt5/erp5_svg_editor/bt/template_format_version create mode 100644 bt5/erp5_svg_editor/bt/template_path_list create mode 100644 bt5/erp5_svg_editor/bt/template_skin_id_list create mode 100644 bt5/erp5_svg_editor/bt/title create mode 100644 bt5/erp5_svg_editor/bt/version diff --git a/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor.xml b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor.xml new file mode 100644 index 0000000000..7a4574e89a --- /dev/null +++ b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor.xml @@ -0,0 +1,146 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5Form" module="Products.ERP5Form.Form"/> + </pickle> + <pickle> + <dictionary> + <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/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>Base_edit</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left (Page Properties)</string> + <string>right (Publication)</string> + <string>center</string> + <string>bottom</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>my_text_content</string> + <string>text_content</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left (Page Properties)</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>right (Publication)</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebIllustration_viewEditor</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>svg_edit_form_view</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Web Table</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/my_text_content.xml b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/my_text_content.xml new file mode 100644 index 0000000000..8826b096a9 --- /dev/null +++ b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/my_text_content.xml @@ -0,0 +1,280 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="TextAreaField" module="Products.Formulator.StandardFields"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>my_text_content</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <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> + <item> + <key> <string>overrides</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> + <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>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> + <item> + <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> + <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>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> + <item> + <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>hidden</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> <int>1</int> </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></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>1</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> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>my_text_content</string> </value> + </item> + <item> + <key> <string>unicode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>whitespace_preserve</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml new file mode 100644 index 0000000000..fb8975deff --- /dev/null +++ b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml @@ -0,0 +1,311 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="EditorField" module="Products.ERP5Form.EditorField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>text_content</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <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> + <item> + <key> <string>overrides</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> + <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> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <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> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </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> + <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> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <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 encoding="cdata"><![CDATA[ + +<iframe name="svgframe" id="svgframe" src="jquery_plugin/svg-editor/svg-editor.html" width="750" height="600"/> + +]]></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Content of the web page</string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>0</int> </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></string> </value> + </item> + <item> + <key> <string>height</string> </key> + <value> <int>40</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> + </item> + <item> + <key> <string>text_editor</string> </key> + <value> <string>text_area</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Page Content</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>120</int> </value> + </item> + </dictionary> + </value> + </item> + </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>here/WebIllustration_renderSVGEditor</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor.xml new file mode 100644 index 0000000000..c709df0705 --- /dev/null +++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor.xml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Folder" module="OFS.Folder"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>erp5_svg_editor</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/WebIllustration_renderSVGEditor.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/WebIllustration_renderSVGEditor.xml new file mode 100644 index 0000000000..70ea5bd3f6 --- /dev/null +++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/WebIllustration_renderSVGEditor.xml @@ -0,0 +1,129 @@ +<?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 encoding="cdata"><![CDATA[ + +html = """\n +<iframe name="svgframe" id="svgframe" \n + src="portal_skins/erp5_jquery/plugin/svg-editor/svg-editor.html?url=%s" width="750" height="600"/> \n +""" % ("%s/getTextContent" % context.getRelativeUrl())\n +\n +return html\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + <string>html</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>WebIllustration_renderSVGEditor</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml new file mode 100644 index 0000000000..4dfa13e8b6 --- /dev/null +++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml @@ -0,0 +1,85 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Cacheable__manager_id</string> </key> + <value> <string>http_cache</string> </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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <unicode>// This function will be called when the user click the save button. As\n +// submitAction function may have changed the action before, it\'s better to\n +// reset the form action to it\'s original behaviour. This is actually\n +// usefull when the user click the back button.\n +function clickSaveButton(act) {\n + changed = false;\n + document.forms[0].action = act;\n + // Here we should use an even based approach - and logic in field class\n + svg_canvas = window.frames["svgframe"].svgCanvas;\n + svg_canvas.bind("saved", saveToField);\n + svg_canvas.save()\n +} \n +\n +function saveToField(window, svg) {\n + document.forms[0].elements[\'field_my_text_content\'].value = svg;\n +}\n +\n +\n + \n +</unicode> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>svg-editor.erp5.js</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_edit_form_view.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_edit_form_view.xml new file mode 100644 index 0000000000..b6910e0cd3 --- /dev/null +++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_edit_form_view.xml @@ -0,0 +1,92 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <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_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <unicode encoding="cdata"><![CDATA[ + +<tal:block tal:replace="nothing">\n +\n +\n +\n +</tal:block>\n +<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n + xmlns:metal="http://xml.zope.org/namespaces/metal"\n + xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n + <tal:block metal:define-macro="master"\n + tal:define="css_list_jquery_template python:[\'portal_skins/erp5_jquery/plugin/jgraduate/css/jPicker-1.0.12.css\',\n + \'portal_skins/erp5_jquery/plugin/jgraduate/css/jgraduate.css\',\n + \'portal_skins/erp5_jquery/plugin/svg-editor/svg-editor.css\',\n + \'portal_skins/erp5_jquery/plugin/spinbtn/JQuerySpinBtn.css\',\n +];\n + js_list_jquery_template python: [];\n + global css_list css_list | python:[];\n + global js_list js_list | python:[];\n + dummy python:css_list.extend(css_list_jquery_template);\n + dummy python:js_list.extend(js_list_jquery_template);">\n + <tal:block metal:use-macro="here/view_main/macros/master">\n + <tal:block metal:fill-slot="main">\n + <tal:block metal:use-macro="here/form_render/macros/master" />\n + </tal:block>\n + </tal:block>\n + </tal:block>\n +</tal:block>\n + + +]]></unicode> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>svg_edit_form_view</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_svg_editor/bt/change_log b/bt5/erp5_svg_editor/bt/change_log new file mode 100644 index 0000000000..fa526eab7a --- /dev/null +++ b/bt5/erp5_svg_editor/bt/change_log @@ -0,0 +1,2 @@ +2010-11-08 gabriel +* The initial commit \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/copyright_list b/bt5/erp5_svg_editor/bt/copyright_list new file mode 100644 index 0000000000..47af9544bf --- /dev/null +++ b/bt5/erp5_svg_editor/bt/copyright_list @@ -0,0 +1 @@ +2010 (c) Nexedi SA \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/dependency_list b/bt5/erp5_svg_editor/bt/dependency_list new file mode 100644 index 0000000000..961df1ab80 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/dependency_list @@ -0,0 +1,2 @@ +erp5_web +erp5_jquery \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/description b/bt5/erp5_svg_editor/bt/description new file mode 100644 index 0000000000..5f0b43aff6 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/description @@ -0,0 +1 @@ +This Business Template contains a simple svg editor \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/license b/bt5/erp5_svg_editor/bt/license new file mode 100644 index 0000000000..3a3e12bcad --- /dev/null +++ b/bt5/erp5_svg_editor/bt/license @@ -0,0 +1 @@ +GPL \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/maintainer_list b/bt5/erp5_svg_editor/bt/maintainer_list new file mode 100644 index 0000000000..38363f7303 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/maintainer_list @@ -0,0 +1 @@ +gabriel \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/revision b/bt5/erp5_svg_editor/bt/revision new file mode 100644 index 0000000000..e440e5c842 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/revision @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/template_format_version b/bt5/erp5_svg_editor/bt/template_format_version new file mode 100644 index 0000000000..56a6051ca2 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/template_format_version @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/template_path_list b/bt5/erp5_svg_editor/bt/template_path_list new file mode 100644 index 0000000000..6e7bc5a507 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/template_path_list @@ -0,0 +1,2 @@ +portal_skins/erp5_web/WebIllustration_viewEditor +portal_skins/erp5_web/WebIllustration_viewEditor/** \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/template_skin_id_list b/bt5/erp5_svg_editor/bt/template_skin_id_list new file mode 100644 index 0000000000..5c5815c988 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/template_skin_id_list @@ -0,0 +1 @@ +erp5_svg_editor \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/title b/bt5/erp5_svg_editor/bt/title new file mode 100644 index 0000000000..5c5815c988 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/title @@ -0,0 +1 @@ +erp5_svg_editor \ No newline at end of file diff --git a/bt5/erp5_svg_editor/bt/version b/bt5/erp5_svg_editor/bt/version new file mode 100644 index 0000000000..48360de846 --- /dev/null +++ b/bt5/erp5_svg_editor/bt/version @@ -0,0 +1 @@ +5.4.7 \ No newline at end of file -- 2.30.9