示例#1
0
 def blog_add_comment(self, blog_url):
     article_id = self.data.get_request_parameter('article_id', default=None)
     blog_comment = KMBlogComment(self.data)
     blog_comment.save()
     return self.blog_page(blog_url, article_id)
示例#2
0
 def blog_add_comment(self, blog_url):
     blog_comment = KMBlogComment(self.data)
     blog_comment.save()
     return self.blog_page(blog_url)
示例#3
0
 def blog_add_comment(self, blog_url):
     blog_comment = KMBlogComment(self.data)
     blog_comment.save()
     return self.blog_page(blog_url)
 def setUp(self):
     initialize(rdb_path='sqlite:///:memory:')
     self.mocker = Mox()
     model = KMBlogComment()
     model.save() # id = 1のデータを登録