From 256907674ee305cd81b33458f1b56a7fc3ea0635 Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Mon, 31 Mar 2014 16:49:58 +0530 Subject: [PATCH] [ADD] : change log bzr revid: aja@tinyerp.com-20140331111958-oyfi455jwyacn9xx --- addons/website_blog/doc/blog_blog.rst | 20 +++++++++++++ addons/website_blog/doc/changelog.rst | 35 ++++++++++++++++++++++ addons/website_blog/doc/controller.rst | 21 +++++++++++++ addons/website_blog/doc/index.rst | 10 +++++++ addons/website_blog/models/website_blog.py | 1 - 5 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 addons/website_blog/doc/blog_blog.rst create mode 100644 addons/website_blog/doc/changelog.rst create mode 100644 addons/website_blog/doc/controller.rst create mode 100644 addons/website_blog/doc/index.rst diff --git a/addons/website_blog/doc/blog_blog.rst b/addons/website_blog/doc/blog_blog.rst new file mode 100644 index 00000000000..8c5f80ab8e4 --- /dev/null +++ b/addons/website_blog/doc/blog_blog.rst @@ -0,0 +1,20 @@ +_blog_blog: + +blog.blog +========= +In ``blog.blog``, added field ``subtitle`` which Indicates the subtitle of blogs. + - ``subtitle``: fields.char('Blog Subtitle') + +mail.message +============ +In ``mail.message``, added field ``discussion`` which Indicates the unique identification +of paragraph on blog post. + - ``discussion``: fields.char('Discussion Unique Name') + +blog.post +========= +Fields +++++++ + - ``sub_title`` : contains the subtitle of every blog post. + - ``visits`` : Indicates the number of visits on evry blog post. + - ``ranking`` : Indicates the ranking on every blog post. diff --git a/addons/website_blog/doc/changelog.rst b/addons/website_blog/doc/changelog.rst new file mode 100644 index 00000000000..42f2fd7e170 --- /dev/null +++ b/addons/website_blog/doc/changelog.rst @@ -0,0 +1,35 @@ +.. _changelog: + +Changelog +========= + +`trunk (saas-3)` +---------------- + + - created ``website_blog`` menu, build on defunct document_page module. + - added new feature ``Inline Discussion`` , that will allow a user to comment + on every paragraph on blog post + - added new feature ``Select to Tweet``, that will alllow a user tweet a selected + text from blog to post , directly on twitter. + + + +WebsiteBlog(controller) +======================= +Methods ++++++++ + - ``blog`` : remove routing related to date. + - ``blog_post`` : updated with , suggestion of next post to the user based on + cookie and number of views. + - ``discussion`` : added method , contains a detail of discussion on every paragraph, + if count is true it only return len of ids else return full detail. + def discussion(self, post_id=0, discussion=None, count=False, **post) + - ``post_discussion`` : added methodt, that allow to post discussion on any paragraph. + def post_discussion(self, blog_post_id=0, **post) + - ``change_bg`` : added method allow a user to change background image on blog + post from front-end. + def change_bg(self, post_id=0, image=None, **post) + - ``get_user`` : added method , that will return True if user is public else False. + def get_user(self, **post): + return [False if request.session.uid else True] + diff --git a/addons/website_blog/doc/controller.rst b/addons/website_blog/doc/controller.rst new file mode 100644 index 00000000000..727368aab8c --- /dev/null +++ b/addons/website_blog/doc/controller.rst @@ -0,0 +1,21 @@ +.. _controller: + +WebsiteBlog(controller) +======================= +Methods ++++++++ + - ``blog`` : remove routing related to date. + - ``blog_post`` : updated with , suggestion of next post to the user based on + cookie and number of views. + - ``discussion`` : added method , contains a detail of discussion on every paragraph, + if count is true it only return len of ids else return full detail. + def discussion(self, post_id=0, discussion=None, count=False, **post) + - ``post_discussion`` : added methodt, that allow to post discussion on any paragraph. + def post_discussion(self, blog_post_id=0, **post) + - ``change_bg`` : added method allow a user to change background image on blog + post from front-end. + def change_bg(self, post_id=0, image=None, **post) + - ``get_user`` : added method , that will return True if user is public else False. + def get_user(self, **post): + return [False if request.session.uid else True] + diff --git a/addons/website_blog/doc/index.rst b/addons/website_blog/doc/index.rst new file mode 100644 index 00000000000..953748fd48d --- /dev/null +++ b/addons/website_blog/doc/index.rst @@ -0,0 +1,10 @@ +Blog Module documentation topics +'''''''''''''''''''''''''''''''' + +Changelog +''''''''' + +.. toctree:: + :maxdepth: 1 + + changelog.rst diff --git a/addons/website_blog/models/website_blog.py b/addons/website_blog/models/website_blog.py index 01774727bdf..98881ffcb4b 100644 --- a/addons/website_blog/models/website_blog.py +++ b/addons/website_blog/models/website_blog.py @@ -37,7 +37,6 @@ class Blog(osv.Model): 'name': fields.char('Blog Name', required=True), 'subtitle': fields.char('Blog Subtitle'), 'description': fields.text('Description'), - 'image': fields.binary('Image'), }