示例#1
0
 def get_by_id(cls, context, service_id):
     service_db = db_api.service_get(context, service_id)
     service = cls._from_db_object(context, cls(), service_db)
     return service
示例#2
0
 def get_by_id(cls, context, service_id):
     service_db = db_api.service_get(context, service_id)
     service = cls._from_db_object(context, cls(), service_db)
     return service