Esempio n. 1
0
 def _get_entries(self, *args, **kwargs):
     from demo.model import DBSession, HelloWorldModel
     return DBSession.query(HelloWorldModel).limit(10).all()
Esempio n. 2
0
 def _get_entries(self, *args, **kwargs):
     from demo.model import DBSession, HelloWorldModel
     return DBSession.query(HelloWorldModel).limit(10).all()
Esempio n. 3
0
 def model(self, *args, **kwargs):
     from demo.model import DBSession, HelloWorldModel
     entries = DBSession.query(HelloWorldModel).limit(10).all()
     return dict(entries=entries)
Esempio n. 4
0
 def model(self, *args, **kwargs):
     from demo.model import DBSession, HelloWorldModel
     entries = DBSession.query(HelloWorldModel).limit(10).all()
     return dict(entries=entries)