def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_tag = FACTORY.getTagDao()
     self.tags = self.dao_tag.get_all()
     self.posts = []
     for post in self.dao_post.get_all():
         self.posts.append([post, get_tags(post.id)])
Exemple #2
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()
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
     self.dao_post_tag = FACTORY.getPostTagDao()
 def initialize(self):
     self.dao_post = FACTORY.getPostDao()
 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()