def __check_connection (self): # Get a new connection object to lemonstand API c = Connector() identity = c.get_identity(self.config.api_host, self.config.api_access) connection = c.s3_connection(identity); self.connection = connection return
def get_connection (configuration): # Start print(Back.YELLOW + Fore.BLACK + 'LemonSync is initiating connection...' + Style.RESET_ALL) # Establish a connection to the LemonStand API, and then to s3 c = Connector() identity = c.get_identity(configuration.api_host, configuration.store_host, configuration.api_access) connection = c.s3_connection(identity); return connection
def get_connection (configuration): # Start print(Back.YELLOW + Fore.BLACK + 'LemonSync is initiating connection...' + Style.RESET_ALL) # Establish a connection to the LemonStand API, and then to s3 c = Connector() identity = c.get_identity(configuration.api_host, configuration.api_access) connection = c.s3_connection(identity); return connection