Commit 88881f5c authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

clean up.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40245 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5605433
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Category" module="Products.ERP5Type.Document.Category"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>blog</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Blog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -72,7 +72,7 @@
\n
<div class="post_body" tal:content="structure summary">Here is a blog post content</div>\n
\n
<div class="post_read_more"><a tal:attributes="href url" i18n:translate="" i18n:domain="ui">Read more</a></div>\n
<!-- <div class="post_read_more"><a tal:attributes="href url" i18n:translate="" i18n:domain="ui">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> <tal:block i18n:translate="" i18n:domain="ui">comment</tal:block></a> | \n
<tal:block i18n:translate="" i18n:domain="ui">Share</tal:block>: <a title="Facebook" tal:attributes="href facebook_url"><img width="20px" alt="Facebook logo" src="erp5_web_blog_image/facebook-button.png" /></a>\n
......
......@@ -51,24 +51,15 @@
<item>
<key> <string>_body</string> </key>
<value> <string>\'\'\'\n
Return the publication_section used in the predicate of the blog web_section is there is any\n
Return the list of publication_section used in the predicate.\n
\'\'\'\n
\n
web_site = context.getWebSiteValue()\n
blog_section_id = web_site.getLayoutProperty(\'layout_blog_section_id\', default=\'blog\')\n
blog = getattr(web_site, blog_section_id, None)\n
if blog is None:\n
raise ValueError, \'Impossible to find %r blog section id. Please check \'\\\n
\'this web_section exists or change layout configuration to set \'\\\n
\'an existing one.\' % (blog_section_id)\n
\n
publication_section_list=[]\n
if \'publication_section\' not in blog.getMembershipCriterionBaseCategoryList():\n
if \'publication_section\' not in context.getMembershipCriterionBaseCategoryList():\n
return publication_section_list\n
for category in blog.getMembershipCriterionCategoryList():\n
base_category = category.split(\'/\')[0] # Retrieve base category\n
for category in context.getMembershipCriterionCategoryList():\n
base_category, category_id = category.split(\'/\', 2)\n
if base_category == \'publication_section\':\n
publication_section_list.append(category.replace(\'%s/\' % base_category, \'\', 1))\n
publication_section_list.append(category_id)\n
return publication_section_list\n
</string> </value>
</item>
......@@ -106,19 +97,13 @@ return publication_section_list\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>publication_section_list</string>
<string>_getattr_</string>
<string>context</string>
<string>web_site</string>
<string>blog_section_id</string>
<string>getattr</string>
<string>None</string>
<string>blog</string>
<string>ValueError</string>
<string>publication_section_list</string>
<string>_getiter_</string>
<string>category</string>
<string>_getitem_</string>
<string>base_category</string>
<string>category_id</string>
</tuple>
</value>
</item>
......@@ -135,7 +120,7 @@ return publication_section_list\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_getBlogPublicationSection</string> </value>
<value> <string>WebSection_getPublicationSectionList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>
<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>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<a class="button button-submit" href="WebSection_viewAddBlogMessageDialog"\n
tal:define="absolute_url here/absolute_url"\n
tal:attributes="href string:${absolute_url}/WebSection_viewAddBlogMessageDialog?cancel_url=${absolute_url}%s"\n
i18n:translate="" i18n:domain="ui">Add Blog Message</a>\n
</tal:block>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewAddBlogMessageButton</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -122,7 +122,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>here/WebSection_getBlogPublicationSection</string> </value>
<value> <string>here/WebSection_getPublicationSectionList</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</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>
<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>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<a class="button button-submit" href="WebSection_viewAddBlogMessageDialog"\n
tal:define="absolute_url here/absolute_url"\n
tal:attributes="href string:${absolute_url}/WebSection_viewAddBlogMessageDialog?cancel_url=${absolute_url}%s"\n
i18n:translate="" i18n:domain="ui">Add Blog Message</a>\n
</tal:block>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>WebSection_viewAddWebPageButton</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -301,11 +301,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
python:"<a class=\\"button button-submit\\" href=\\"%s/WebSection_viewAddBlogMessageDialog?cancel_url=%s\\">%s</a>" % (here.absolute_url(), here.absolute_url(), here.Base_translateString(\'Add Blog Message\'))
]]></string> </value>
<value> <string>here/WebSection_viewAddBlogMessageButton</string> </value>
</item>
</dictionary>
</pickle>
......
80
\ No newline at end of file
82
\ 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