Пример #1
0
	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
Пример #2
0
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
Пример #3
0
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