Ejemplo n.º 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()
Ejemplo n.º 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
Ejemplo n.º 3
0
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
Ejemplo n.º 4
0
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
Ejemplo n.º 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()
Ejemplo n.º 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