@classmethod<EOL><INDENT>def connect(cls, pipeline_method, name=None):<DEDENT>
new_pool = pipeline_method().connection_pool<EOL>try:<EOL><INDENT>if cls.get(name).connection_pool != new_pool:<EOL><INDENT>raise AlreadyConnected("<STR_LIT>" % name)<EOL><DEDENT><DEDENT>except InvalidPipeline:<EOL><INDENT>pass<EOL><DEDENT>cls.connections[name] = pipeline_method<EOL>
Low level logic to bind a callable method to a name.
Don't call this directly unless you know what you are doing.

:param pipeline_method: callable
:param name: str optional
:return: None