[Erp5-report] r40148 gabriel - in /erp5/trunk/bt5/erp5_svg_editor: SkinTemplateItem/portal_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 10 01:47:20 CET 2010
Author: gabriel
Date: Wed Nov 10 01:47:19 2010
New Revision: 40148
URL: http://svn.erp5.org?rev=40148&view=rev
Log:
rename files and added comments
Added:
erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_getTextContentWrapper.xml
erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setTextContentWrapper.xml
erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_editor_support.xml
Modified:
erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml
erp5/trunk/bt5/erp5_svg_editor/bt/revision
Added: erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_getTextContentWrapper.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_getTextContentWrapper.xml?rev=40148&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_getTextContentWrapper.xml (added)
+++ erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_getTextContentWrapper.xml [utf8] Wed Nov 10 01:47:19 2010
@@ -0,0 +1,123 @@
+<?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>"""\n
+ Script used by JavaScript to get the text of document.\n
+ This way is used to the JavaScript insert the data in SVG Editor.\n
+"""\n
+return context.getTextContent()\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>
+ </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>Base_getTextContentWrapper</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Added: erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setTextContentWrapper.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setTextContentWrapper.xml?rev=40148&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setTextContentWrapper.xml (added)
+++ erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Base_setTextContentWrapper.xml [utf8] Wed Nov 10 01:47:19 2010
@@ -0,0 +1,126 @@
+<?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>"""\n
+ wrapper to JQuery insert the data in the current document\n
+"""\n
+text_content = context.REQUEST.get("text")\n
+if text_content is not None:\n
+ context.edit(text_content=text_content)\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>text_content</string>
+ <string>None</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>Base_setTextContentWrapper</string> </value>
+ </item>
+ <item>
+ <key> <string>warnings</string> </key>
+ <value>
+ <tuple/>
+ </value>
+ </item>
+ </dictionary>
+ </pickle>
+ </record>
+</ZopeData>
Modified: erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml?rev=40148&r1=40147&r2=40148&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg-editor.erp5.js.xml [utf8] Wed Nov 10 01:47:19 2010
@@ -44,22 +44,17 @@
svg_canvas = window.frames["svgframe"].svgCanvas;\n
$.ajax({\n
type: "POST",\n
- url: "WebIllustration_setTextContent",\n
+ url: "Base_setTextContentWrapper",\n
data: "text=" + svg_canvas.getSvgString(),\n
});\n
});\n
svg_canvas = window.frames["svgframe"].svgCanvas;\n
var text_content = $.ajax({\n
- url: "WebIllustration_getTextContent",\n
+ url: "Base_getTextContentWrapper",\n
async: false\n
}).responseText;\n
svg_canvas.setSvgString(text_content);\n
-})\n
-\n
-function clickSaveButton() {\n
- svg_canvas = window.frames["svgframe"].svgCanvas;\n
- document.forms[0].elements[\'field_my_text_content\'].value = svg_canvas.getSvgString();\n
-}</unicode> </value>
+})</unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
Added: erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_editor_support.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_editor_support.xml?rev=40148&view=auto
==============================================================================
--- erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_editor_support.xml (added)
+++ erp5/trunk/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/svg_editor_support.xml [utf8] Wed Nov 10 01:47:19 2010
@@ -0,0 +1,73 @@
+<?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[
+
+<script type="text/javascript" src="portal_skins/erp5_jquery/core/jquery.js"></script>\n
+<script type="text/javascript" src="svg-editor.erp5.js"></script>\n
+<iframe name="svgframe" \n
+ id="svgframe" \n
+ src="portal_skins/erp5_jquery/plugin/svg-editor/svg-editor.html" \n
+ width="100%" \n
+ height="570"/>\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_support</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>
Modified: erp5/trunk/bt5/erp5_svg_editor/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_svg_editor/bt/revision?rev=40148&r1=40147&r2=40148&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_svg_editor/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_svg_editor/bt/revision [utf8] Wed Nov 10 01:47:19 2010
@@ -1 +1 @@
-11
\ No newline at end of file
+13
\ No newline at end of file
More information about the Erp5-report
mailing list