示例#1
0
 def list(self):
     recs = MEntity.query_all(limit=16)
     kwd = {
         'pager': '',
     }
     self.render('misc/entity/entity_list.html',
                 imgs=recs,
                 cfg=config.CMS_CFG,
                 kwd=kwd,
                 userinfo=self.userinfo)
示例#2
0
    def test_query_all(self):
        self.add_message()
        a = MEntity.query_all()
        tf = False

        for i in a:

            if i.uid == self.uid:
                tf = True
        assert tf
        self.tearDown()
示例#3
0
 def test_query_all(self):
     MEntity.query_all()
     assert True