def remove_context(self, context_id): try: EntityContext.remove_context(context_id) except Exception as e: traceback.print_exc() raise e
def get_context(self, context): try: result = EntityContext.get_entity_context(context) if result: return result except Exception as e: traceback.print_exc() raise e