Exemple #1
0
 def write(self, output_stream):
     keys = self.config.get_keys()
     et.write_int32(len(keys), output_stream)
     for key in keys:
         value = self.config.get_value(key)
         et.write_str(key, output_stream)
         et.write_str(value, output_stream)
Exemple #2
0
    def write(self, output_stream):
        et.write_int32(len(self.changed), output_stream)
        for entity_id in self.changed:
            et.write_int32(entity_id.get_value(), output_stream)
            et.write_str(self.get_entity_urn(entity_id), output_stream)

            properties = self.changed[entity_id].values()
            et.write_int32(len(properties), output_stream)
            for property in properties:
                et.write_property(property, output_stream)

        et.write_int32(len(self.deleted), output_stream)
        for entity_id in self.deleted:
            et.write_int32(entity_id.get_value(), output_stream)
Exemple #3
0
 def write(self, output_stream):
     et.write_int32(len(self.value_list), output_stream)
     for value in self.value_list:
         et.write_str(value, output_stream)
Exemple #4
0
 def write(self, output_stream):
     et.write_str(self.value, output_stream)