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 @@ ...@@ -62,9 +62,6 @@
<key> <string>group_list</string> </key> <key> <string>group_list</string> </key>
<value> <value>
<list> <list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string> <string>bottom</string>
<string>hidden</string> <string>hidden</string>
</list> </list>
...@@ -82,20 +79,8 @@ ...@@ -82,20 +79,8 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>listbox_link</string> <string>listbox_link</string>
...@@ -103,12 +88,6 @@ ...@@ -103,12 +88,6 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -311,7 +311,32 @@ ...@@ -311,7 +311,32 @@
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <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> </value>
</item> </item>
<item> <item>
...@@ -328,27 +353,23 @@ ...@@ -328,27 +353,23 @@
<list> <list>
<tuple> <tuple>
<string>title</string> <string>title</string>
<string>rss_title</string> <string>title</string>
</tuple> </tuple>
<tuple> <tuple>
<string>creation_date</string> <string>creation_date</string>
<string>rss_pubDate</string> <string>pubDate</string>
</tuple>
<tuple>
<string>Base_getRSSAuthor</string>
<string>rss_author</string>
</tuple> </tuple>
<tuple> <tuple>
<string>link</string> <string>link</string>
<string>rss_link</string> <string>link</string>
</tuple> </tuple>
<tuple> <tuple>
<string>Base_getRSSDescription</string> <string>description</string>
<string>rss_description</string> <string>description</string>
</tuple> </tuple>
<tuple> <tuple>
<string>absolute_url</string> <string>link</string>
<string>rss_guid</string> <string>guid</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -409,6 +430,10 @@ ...@@ -409,6 +430,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>
......
...@@ -265,18 +265,15 @@ ...@@ -265,18 +265,15 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
846 847
\ 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