#NEWLINE# def __init__( self , store_name , store_location_class , conf , uri = None , image_id = None , store_specs = None ) : #NEWLINE# #INDENT# '\n        Create a new Location object.\n\n        :param store_name: The string identifier/scheme of the storage backend\n        :param store_location_class: The store location class to use\n                                     for this location instance.\n        :param image_id: The identifier of the image in whatever storage\n                         backend is used.\n        :param uri: Optional URI to construct location from\n        :param store_specs: Dictionary of information about the location\n                            of the image that is dependent on the backend\n                            store\n        ' #NEWLINE# self . store_name = store_name #NEWLINE# self . image_id = image_id #NEWLINE# self . store_specs = ( store_specs or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . conf = conf #NEWLINE# self . store_location = store_location_class ( self . store_specs , conf ) #NEWLINE# if uri : #NEWLINE# #INDENT# self . store_location . parse_uri ( uri )