Commit b4b86a16 authored by Pierre Ducroquet's avatar Pierre Ducroquet

Add RSS support to the blog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31760 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f2cd2c4
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>left</string>
<string>right</string>
<string>center</string>
<string>bottom</string>
<string>hidden</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>listbox</string>
</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/>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Blog_viewAsRSS</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>Folder_asRSS</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>rss_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -39,12 +39,14 @@
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<div class="blog_rss"><a href="./Blog_viewAsRSS"><img src="blog_images/rss-image.png" alt="This blog as RSS" /></a></div>\n
\n
<tal:block tal:define="real_context here/getContext; \n
base_url_string real_context/absolute_url;\n
date_renderer nocall:real_context/WebSection_viewBlogFrontPage/listbox_effective_date/render_html;" \n
tal:repeat="line here/query">\n
<!--\n
<span tal:content="python: real_context.WebSection_getCategoryList()">Test</span>-->\n
\n
\n
<!--Here is a post-->\n
<div class="blog_post" tal:define="render_result line/render">\n
<tal:block tal:define="title python: render_result[0][1]; \n
......@@ -73,6 +75,7 @@
\n
<div class="post_body" tal:replace="structure summary">Here is a blog post content</div>\n
\n
<div class="post_read_more"><a tal:attributes="href url">Read more</a></div>\n
<div class="post_bottom">\n
<a tal:attributes="href comments_url"><tal:block tal:replace="comment_count">0</tal:block> comment</a> | \n
Share: <a title="Facebook" tal:attributes="href facebook_url"><img width="20px" alt="Facebook logo" src="blog_images/facebook-button.png"></a>&nbsp;&nbsp;\n
......
<?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>if hasattr(context, \'REQUEST\'):\n
here = context.REQUEST.get("PARENTS")[0].absolute_url()\n
return "%s/%s" % (here, context.getReference())\n
\n
return context.getReference()\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>hasattr</string>
<string>context</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>here</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>WebSection_getBlogPostLink</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -71,6 +71,8 @@ for item in current_section.WebSection_getDocumentValueList():\n
else:\n
result.append(item)\n
\n
result.sort(key = lambda x: x.effective_date)\n
\n
return result\n
</string> </value>
</item>
......
......@@ -11,7 +11,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts61472107.6</string> </value>
<value> <string>ts63398549.3</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -39,6 +39,11 @@ hr.post_separator {\n
display: block;\n
}\n
\n
.blog_post .post_read_more {\n
text-align: right;\n
display: block;\n
}\n
\n
.blog_post .post_head .post_time input {\n
border: none;\n
background: none;\n
......@@ -99,7 +104,7 @@ hr.post_separator {\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1064</int> </value>
<value> <int>1135</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Image" module="OFS.Image"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts63482102.55</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>rss-image.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz
AAADdgAAA3YBfdWCzAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPtSURB
VHja7ZdPaFxVGMV/9773Jpn8n6SUJI1FNJXG4IBprAVrQF22LkTThaBYKBQ3Slu3ggvdCK3oQkvB
RXVjE7Dgn7qpFUQq2DbB2LSpRMQ6iXHSNjqZSTIz773PKd8icXyTDDjQhR44M/Pde989h3Pve3Of
ERHuJCzw3zbgUgZTwsgwtqmz1+0b6DHUAFfHUpKdm/b3jRJK2Zqbsppbp/bvamy/+32bvrrN5DMe
UTCAlDfph6ytUYReUzHcvH0q/+cvB1qGT35X0cDo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D/l9M7buAvjduVXvC1GkkAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>32</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1136</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>32</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
erp5_web
\ No newline at end of file
erp5_web
erp5_rss_style
\ No newline at end of file
28
\ No newline at end of file
29
\ 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