Beispiel #1
0
 def get_lite(cls, id, wrap=True):
     from corehq.apps.hqcase.dbaccessors import get_lite_case_json
     results = get_lite_case_json(id)
     if results is None:
         raise ResourceNotFound('no case with id %s exists' % id)
     if wrap:
         return cls.wrap(results['value'])
     else:
         return results['value']
Beispiel #2
0
 def get_lite(cls, id, wrap=True):
     from corehq.apps.hqcase.dbaccessors import get_lite_case_json
     results = get_lite_case_json(id)
     if results is None:
         raise ResourceNotFound('no case with id %s exists' % id)
     if wrap:
         return cls.wrap(results['value'])
     else:
         return results['value']