(self, group_id)
return result value for a group by id.
return result value for a group by id.
return result value for a group by id .
def _restore_group(self, group_id):
        """return result value for a group by id."""
        group_result = self.GroupModel._default_manager.get_group(group_id)

        if group_result:
            res = group_result.as_dict()
            decoded_result = self.decode_content(group_result, res["result"])
            res["result"] = None
            if decoded_result:
                res["result"] = result_from_tuple(decoded_result, app=self.app)
            return res
def _restore_group ( self , group_id ) : group_result = self . GroupModel . _default_manager . get_group ( group_id ) if group_result : res = group_result . as_dict ( ) decoded_result = self . decode_content ( group_result , res [ "result" ] ) res [ "result" ] = None if decoded_result : res [ "result" ] = result_from_tuple ( decoded_result , app = self . app ) return res