Beispiel #1
0
    def save_to_store(self):
        """Save index to store.

        :raise AttributeError: If no datastore is defined

        """
        if not self._store:
            raise AttributeError('No datastore defined!')
        saved_data = self.save_to_data(in_place=True)
        data = Serializer.serialize(saved_data)
        self._store.store_blob(data, 'all_keys_with_undefined')
Beispiel #2
0
    def save_to_store(self):
        """Save index to store.

        :raise AttributeError: If no datastore is defined

        """
        if not self._store:
            raise AttributeError('No datastore defined!')
        saved_data = self.save_to_data(in_place=True)
        data = Serializer.serialize(saved_data)
        self._store.store_blob(data, 'all_keys_with_undefined')
Beispiel #3
0
 def save_to_store(self):
     if not self._store:
         raise AttributeError("No datastore defined!")
     saved_data = self.save_to_data(in_place=True)
     data = Serializer.serialize(saved_data)
     self._store.store_blob(data, 'all_keys_with_undefined')
Beispiel #4
0
 def save_config(self):
     config_file = self._path+"/config.json"
     with open(config_file,"wb") as config_file:
         config_file.write(Serializer.serialize(self._config))
Beispiel #5
0
 def encode_attributes(self,attributes):
     return Serializer.serialize(attributes)
Beispiel #6
0
 def save_config(self):
     config_file = self._path + "/config.json"
     with open(config_file, "wb") as config_file:
         config_file.write(Serializer.serialize(self._config))
Beispiel #7
0
 def encode_attributes(self, attributes):
     return Serializer.serialize(attributes)