Commit d257a74b authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_rss_style: Start to test for CodingStyle

 Fixup unused variable
 Listbox is an invalid suffix for python script, proper
   value is ListBox, this fixup coding style tests
parent 292d2692
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
tal:define="line_list here/query; tal:define="line_list here/query;
label_list here/getLabelValueList; label_list here/getLabelValueList;
real_context here/getContext; real_context here/getContext;
feed_data python: real_context.Listbox_asRSS(label_list, line_list);"> feed_data python: real_context.ListBox_asRSS(label_list, line_list);">
<rss version="2.0"> <rss version="2.0">
<channel> <channel>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
tal:define="line_list here/query; tal:define="line_list here/query;
label_list here/getLabelValueList; label_list here/getLabelValueList;
real_context here/getContext; real_context here/getContext;
feed_data python: real_context.Listbox_asRSS(label_list, line_list);"> feed_data python: real_context.ListBox_asRSS(label_list, line_list);">
<item tal:repeat="item_info feed_data/listItemInfos" > <item tal:repeat="item_info feed_data/listItemInfos" >
<tal:block tal:replace="structure item_info"/> <tal:block tal:replace="structure item_info"/>
</item> </item>
......
...@@ -38,7 +38,6 @@ from Products.ERP5Type.Utils import str2unicode ...@@ -38,7 +38,6 @@ from Products.ERP5Type.Utils import str2unicode
items = [] items = []
feed_data = {} feed_data = {}
request = context.REQUEST
# required channel elements for RSS 2.0 specification # required channel elements for RSS 2.0 specification
required_field_list = ('title', 'description', 'link') required_field_list = ('title', 'description', 'link')
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Listbox_asRSS</string> </value> <value> <string>ListBox_asRSS</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
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