[IMP] website_blog: updated blog_short_content to new html cleaner

bzr revid: tde@openerp.com-20131001125542-um5jv06a987vyftc
This commit is contained in:
Thibault Delavallée 2013-10-01 14:55:42 +02:00
parent c6c8f6d835
commit 1d2afb7cbf
1 changed files with 8 additions and 3 deletions

View File

@ -76,9 +76,14 @@ class BlogPost(osv.Model):
shorten=True,
max_length=self._shorten_max_char,
expand_options={
'oe_expand_href': '/blog/%d/%d' % (page.category_id.id, page.id),
'oe_expand_a_class': 'oe_mail_expand btn btn-info'
}, br=True
'oe_expand_container_tag': 'div',
'oe_expand_container_class': 'oe_mail_expand text-center',
'oe_expand_container_content': '',
'oe_expand_a_href': '/blog/%d/%d' % (page.category_id.id, page.id),
'oe_expand_a_class': 'oe_mail_expand btn btn-info',
'oe_expand_separator_node': 'br',
},
protect_sections=True,
)
except Exception:
body_short = False