def load_metadata(self, metadata_conf):
        """ Loads metadata into an internal structure """

        acs = self.attribute_converters

        if acs is None:
            raise ConfigurationError(
                "Missing attribute converter specification")

        try:
            ca_certs = self.ca_certs
        except:
            ca_certs = None
        try:
            disable_validation = self.disable_ssl_certificate_validation
        except:
            disable_validation = False

        mds = MetadataStore(acs, self, ca_certs,
            disable_ssl_certificate_validation=disable_validation)

        mds.imp(metadata_conf)

        return mds
def load_metadata ( self , metadata_conf ) : acs = self . attribute_converters if acs is None : raise ConfigurationError ( "Missing attribute converter specification" ) try : ca_certs = self . ca_certs except : ca_certs = None try : disable_validation = self . disable_ssl_certificate_validation except : disable_validation = False mds = MetadataStore ( acs , self , ca_certs , disable_ssl_certificate_validation = disable_validation ) mds . imp ( metadata_conf ) return mds
Loads metadata into an internal structure