예제 #1
0
 def setUp(self):
     self.dao_tag = FACTORY.getTagDao()
     #        self.dao_tag.delete_all()
     self.dao_post = FACTORY.getPostDao()
     #        self.assertTrue(self.dao_post.delete_all())
     self.dao_user = FACTORY.getUserDao()
     #        self.assertTrue(self.dao_user.delete_all())
     self.dao_post_tag = FACTORY.getPostTagDao()
예제 #2
0
def get_tags(post_id):
    dao_post_tag = FACTORY.getPostTagDao()
    tags = [i.nome for i in dao_post_tag.get_all_tags_post(post_id)]
    return tags
예제 #3
0
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
예제 #4
0
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
예제 #5
0
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_tag = FACTORY.getTagDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
     self.tags = self.dao_tag.get_all()
     self.posts_only = self.dao_post.get_all()
예제 #6
0
def get_tags(post_id):
    dao_post_tag = FACTORY.getPostTagDao()
    tags = [i.nome for i in dao_post_tag.get_all_tags_post(post_id)]
    return tags