git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@768
959494ce-11ee-0310-bf91-
de5d638817bd
"""A convenience function for connect and loginasync.
This function will connect to the given server, or the server in
"""A convenience function for connect and loginasync.
This function will connect to the given server, or the server in
- the environment variable $DCSERVER if none is given, and
- authenticate to the server. If any of the steps fail, an exception
- is raised.
+ the environment variable $DCSERVER if none is given, or, if that
+ fails, localhost, and authenticate to the server. If any of the
+ steps fail, an exception is raised.
"""
if host is None:
host = os.getenv("DCSERVER")
if host is None:
"""
if host is None:
host = os.getenv("DCSERVER")
if host is None:
- raise ValueError, "No DC host to connect to"
fd = mustconnect(host, port)
err, reason = login(useauthless, **kw)
if err != "success":
fd = mustconnect(host, port)
err, reason = login(useauthless, **kw)
if err != "success":