[FIX] portal_sale: security rules matching the one of public user
[odoo/odoo.git] / addons / website_blog / doc / controller.rst
1 .. _controller:
2
3 WebsiteBlog(controller)
4 =======================
5 Methods
6 +++++++
7  - ``blog`` : remove routing related to date.
8  - ``blog_post`` : updated with , suggestion of next post to the user based on
9    cookie and number of views.
10  - ``discussion`` : added method , contains a detail of discussion on every paragraph,
11     if count is true it only return len of ids else return full detail.
12         def discussion(self, post_id=0, discussion=None, count=False, **post)
13  - ``post_discussion`` : added methodt, that allow to post discussion on any paragraph.
14         def post_discussion(self, blog_post_id=0, **post)
15  - ``change_bg`` : added method allow a user to change background image on blog 
16    post from front-end.
17         def change_bg(self, post_id=0, image=None, **post)
18  - ``get_user`` : added method , that will return True if user is public else False.
19         def get_user(self, **post):
20             return [False if request.session.uid else True]
21