Exemple #1
0
 def change_object(self):
     change = change_from_couch_row(self.change if self.change else {'id': self.doc_id})
     if self.change_metadata:
         change.metadata = ChangeMeta.wrap(self.change_metadata)
     change.document = None
     return change
Exemple #2
0
def change_meta_from_kafka_message(message):
    return ChangeMeta.wrap(json.loads(message))