##// END OF EJS Templates
application: add all() method to service
ergo -
Show More
@@ -37,9 +37,14 b' from appenlight.models.services.event import EventService'
37 37 log = logging.getLogger(__name__)
38 38
39 39
40 # cache_memory_min_1 = get_region('memory_min_1')
41
42 40 class ApplicationService(BaseService):
41
42 @classmethod
43 def all(cls, db_session=None):
44 db_session = get_db_session(db_session)
45 q = db_session.query(Application)
46 return q
47
43 48 @classmethod
44 49 def by_api_key(cls, api_key, db_session=None):
45 50 db_session = get_db_session(db_session)
General Comments 0
You need to be logged in to leave comments. Login now