From 633f5b2d1fdd043e5401b06e5a2c7cf97a9332a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20G=C3=B3rny?= <bartek@gorny.edu.pl> Date: Wed, 5 Sep 2007 15:50:33 +0000 Subject: [PATCH] quote html special chars in description git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16089 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_rss_style/Base_getRSSDescription.xml | 157 ++++++++++++++++++ .../Folder_viewContentListAsRSS/listbox.xml | 2 +- bt5/erp5_rss_style/bt/revision | 2 +- 3 files changed, 159 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Base_getRSSDescription.xml diff --git a/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Base_getRSSDescription.xml b/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Base_getRSSDescription.xml new file mode 100644 index 0000000000..2c1d7aa0f2 --- /dev/null +++ b/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Base_getRSSDescription.xml @@ -0,0 +1,157 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </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[ + +"""\n + Pre-process a description before putting it into RSS feed.\n + We html-quote all < and > because they\'d break the reader\n + (the > char is often found in mail messages).\n +"""\n +\n +description = context.getDescription()\n +description = description.replace(\'>\', \'>\')\n +description = description.replace(\'<\', \'<\')\n +return description\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_filepath</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>description</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_getRSSDescription</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Folder_viewContentListAsRSS/listbox.xml b/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Folder_viewContentListAsRSS/listbox.xml index 05a9de0b66..fd15d91a46 100644 --- a/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Folder_viewContentListAsRSS/listbox.xml +++ b/bt5/erp5_rss_style/SkinTemplateItem/portal_skins/erp5_rss_style/Folder_viewContentListAsRSS/listbox.xml @@ -342,7 +342,7 @@ <string>rss_link</string> </tuple> <tuple> - <string>description</string> + <string>Base_getRSSDescription</string> <string>rss_description</string> </tuple> <tuple> diff --git a/bt5/erp5_rss_style/bt/revision b/bt5/erp5_rss_style/bt/revision index f11c82a4cb..9a037142aa 100644 --- a/bt5/erp5_rss_style/bt/revision +++ b/bt5/erp5_rss_style/bt/revision @@ -1 +1 @@ -9 \ No newline at end of file +10 \ No newline at end of file -- 2.30.9