Commit c06b2d5c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

improve WebSection_viewContentListAsRSS.

* use permanent URL instead of absolute_url for link and guid value.
* do not escape twice for title and description.
* do not include author.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1c9b02f8
......@@ -62,9 +62,6 @@
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
......@@ -82,20 +79,8 @@
</list>
</value>
</item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>listbox_link</string>
......@@ -103,12 +88,6 @@
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
......
......@@ -311,7 +311,32 @@
<item>
<key> <string>all_columns</string> </key>
<value>
<list/>
<list>
<tuple>
<string>title</string>
<string>title</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>pubDate</string>
</tuple>
<tuple>
<string>author</string>
<string>author</string>
</tuple>
<tuple>
<string>link</string>
<string>link</string>
</tuple>
<tuple>
<string>description</string>
<string>description</string>
</tuple>
<tuple>
<string>link</string>
<string>guid</string>
</tuple>
</list>
</value>
</item>
<item>
......@@ -328,27 +353,23 @@
<list>
<tuple>
<string>title</string>
<string>rss_title</string>
<string>title</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>rss_pubDate</string>
</tuple>
<tuple>
<string>Base_getRSSAuthor</string>
<string>rss_author</string>
<string>pubDate</string>
</tuple>
<tuple>
<string>link</string>
<string>rss_link</string>
<string>link</string>
</tuple>
<tuple>
<string>Base_getRSSDescription</string>
<string>rss_description</string>
<string>description</string>
<string>description</string>
</tuple>
<tuple>
<string>absolute_url</string>
<string>rss_guid</string>
<string>link</string>
<string>guid</string>
</tuple>
</list>
</value>
......@@ -409,6 +430,10 @@
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>hide_rows_on_no_search_criterion</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>lines</string> </key>
<value> <int>20</int> </value>
......
......@@ -265,18 +265,15 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: cell.absolute_url() + \'/view\'</string> </value>
<value> <string>python:(cell.getPortalType() == \'Web Page\' and cell.getPermanentURL(cell) or cell.absolute_url() + \'/view\')</string> </value>
</item>
</dictionary>
</pickle>
......
846
\ No newline at end of file
847
\ 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