Commit 3ef46203 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* versino 5.4.3.

* remove bogus script that will cause 'escape twice'.
* add more comments.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28703 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c06b2d5c
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
feed 100% standard-compliant.\n feed 100% standard-compliant.\n
"""\n """\n
\n \n
# XXX What is the definition of \'author\' value?\n
# Should it be \'the last person who modified the document\'?\n
return context.getOwnerInfo().get(\'id\', \'\')\n return context.getOwnerInfo().get(\'id\', \'\')\n
</string> </value> </string> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</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
Pre-process a description before putting it into RSS feed.\n
"""\n
from Products.PythonScripts.standard import html_quote\n
\n
description = context.getDescription()\n
return html_quote(description)\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>Products.PythonScripts.standard</string>
<string>html_quote</string>
<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>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</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
Pre-process a title before putting it into RSS feed.\n
"""\n
from Products.PythonScripts.standard import html_quote\n
\n
title = context.Title()\n
return html_quote(title)\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>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>context</string>
<string>title</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_getRSSTitle</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>Base_getRSSTitle</string> <string>title</string>
<string>title</string> <string>title</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
<string>link</string> <string>link</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Base_getRSSDescription</string> <string>description</string>
<string>description</string> <string>description</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -414,6 +414,10 @@ ...@@ -414,6 +414,10 @@
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>lines</string> </key> <key> <string>lines</string> </key>
<value> <int>20</int> </value> <value> <int>20</int> </value>
...@@ -454,6 +458,10 @@ ...@@ -454,6 +458,10 @@
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
</item> </item>
<item>
<key> <string>row_css_method</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
...@@ -503,6 +511,12 @@ ...@@ -503,6 +511,12 @@
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>listbox</string> </value> <value> <string>listbox</string> </value>
</item> </item>
<item>
<key> <string>untranslatable_columns</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>url_columns</string> </key> <key> <string>url_columns</string> </key>
<value> <value>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StringField" module="Products.Formulator.StandardFields"/>
<string>Products.Formulator.StandardFields</string> <tuple/>
<string>StringField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -67,16 +67,20 @@ ...@@ -67,16 +67,20 @@
User can limit number of entries by passing "max_articles" in the url (default is 30).\n User can limit number of entries by passing "max_articles" in the url (default is 30).\n
\n \n
USAGE:\n USAGE:\n
The RSS skin is to be used to render a custom rss listbox, which must have columns\n The RSS skin is to be used to render a custom rss listbox, which can have columns\n
with following titles:\n with following titles:\n
- title\n - title\n
- author\n - link\n
- description\n - description\n
- author\n
- category\n - category\n
- comments\n - comments\n
- enclosure\n
- guid\n
- pubDate\n - pubDate\n
- link\n - source\n
- guid (which should be an absolute url of the document)\n All elements of an item are optional, however at least one of title or description must be\n
present. \n
The way an object is presented should be defined in the listbox - the RSS skin passes on\n The way an object is presented should be defined in the listbox - the RSS skin passes on\n
what is in the listbox, as is. So you can produce your own description, author information\n what is in the listbox, as is. So you can produce your own description, author information\n
or publication date. A partial exception to this rule is dates - RSS protocol requires\n or publication date. A partial exception to this rule is dates - RSS protocol requires\n
......
17 18
\ No newline at end of file \ No newline at end of file
0.1 5.4.3
\ No newline at end of file \ 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