Renamed event store's store() method (was append()).
@@ -501,7 +501,7 @@ Now, let's firstly write the events we received earlier into the event store.
# Put each received event into the event store.
for event in received_events:
- event_store.append(event)
+ event_store.store(event)
# Check the events exist in the event store.
stored_events = event_store.get_domain_events(entity.id)
@@ -571,7 +571,7 @@ uses an event store to store events whenever they are received.
unsubscribe(self.store_event)
def store_event(self, event):
- self.event_store.append(event)
+ self.event_store.store(event)
A slightly more developed class :class:`~eventsourcing.application.policies.PersistencePolicy`
