def connect(self, *args):
        """connects to the dropbox. args[0] is the username."""
        if len(args) != 1:
            return "expected one argument!"
        try:
            dbci = get_dropbox_client(args[0], False, None, None)
        except Exception as e:
            return e.message
        else:
            if dbci is None:
                return "No Dropbox configured for '{u}'.".format(u=args[0])
            else:
                self.client = dbci
            return True
connects to the dropbox. args[0] is the username.
lib/stashutils/fsi/DropBox.py