Пример #1
0
 def blog_comment_added(self, postname, number):
     action = 'post_comment_added'
     blog_post = BlogPost(self.env, postname, 0)
     bc = BlogComment(self.env, postname, number)
     notifier = FullBlogNotificationEmail(self.env)
     notifier.notify(blog_post, action, blog_post.version, bc.time,
                     bc.comment, bc.author)
Пример #2
0
 def blog_comment_added(self, postname, number):
     """Called when Blog comment number N on post 'postname' is added."""
     blog_post = BlogPost(self.env, postname, 0)
     blog_comment = BlogComment(self.env, postname, number)
     announcer = AnnouncementSystem(self.env)
     announcer.send(
         BlogChangeEvent(blog_post, 'comment created',
                         self.env.abs_href.blog(blog_post.name),
                         blog_comment))
Пример #3
0
 def blog_comment_added(self, postname, number):
     text = "SampleBlogPlugin: New comment number '%d' added " \
             "to blog post '%s'. Comment: %s"
     bc = BlogComment(self.env, postname, number)
     self.log.debug(text, bc.number, bc.post_name, bc.comment)