summaryrefslogtreecommitdiff
path: root/addons/website_mail/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-07-30 10:50:27 +0200
committerChristophe Matthieu <chm@openerp.com>2013-07-30 10:50:27 +0200
commit781ae74c182999962bdfd1e1dfce39977bdb379b (patch)
tree46beafdcadef940cc42443ffc592a8614845e6ee /addons/website_mail/controllers/main.py
parent3bb683e07df56e76f5112636c023302ebe235629 (diff)
[IMP] website_mail: button add a new blog; link on header and footer
bzr revid: chm@openerp.com-20130730085027-beo81wr0ru1m6q2d
Diffstat (limited to 'addons/website_mail/controllers/main.py')
-rw-r--r--addons/website_mail/controllers/main.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/addons/website_mail/controllers/main.py b/addons/website_mail/controllers/main.py
index 17d8317c58e..b1351cee682 100644
--- a/addons/website_mail/controllers/main.py
+++ b/addons/website_mail/controllers/main.py
@@ -96,19 +96,10 @@ class website_mail(website):
return werkzeug.utils.redirect("/blog/%s/%s" % (mail_group_id, blog_id))
@website.route(['/blog/<int:mail_group_id>/new'], type='http', auth="admin")
- def new_blog(self, cr, uid, mail_group_id=None, **post):
- values = {
- 'res_company': request.registry['res.company'].browse(cr, uid, 1),
- 'mail_group_id': mail_group_id,
- }
- html = self.render(cr, uid, "website_mail.new_blog", values)
- return html
-
- @website.route(['/blog/<int:mail_group_id>/new/post'], type='http', auth="admin")
def new_blog_post(self, cr, uid, mail_group_id=None, **post):
blog_id = request.registry['mail.group'].message_post(cr, uid, mail_group_id,
- body=post['body'],
- subject=post['subject'],
+ body=_("Blog content.<br/>Please edit this content then you can publish this blog."),
+ subject=_("Blog title"),
website_published=False,
type='comment',
subtype='mt_comment',