#NEWLINE# def assign_funcs( modname , service , module = None , pack = None ) : #NEWLINE# #INDENT# "\n    Assign _get_conn and _cache_id functions to the named module.\n\n    .. code-block:: python\n\n        _utils__['boto.assign_partials'](__name__, 'ec2')\n    " #NEWLINE# if pack : #NEWLINE# #INDENT# global __salt__ #NEWLINE# __salt__ = pack #NEWLINE# #UNINDENT# mod = sys . modules [ modname ] #NEWLINE# setattr ( mod , '_get_conn' , get_connection_func ( service , module = service ) ) #NEWLINE# setattr ( mod , '_cache_id' , cache_id_func ( service ) ) #NEWLINE# setattr ( mod , '_exactly_one' , exactly_one )