Skip to content

Commit

Permalink
Set 'apply_policy_to_generated_events' on ProcessApplication class.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Nov 9, 2019
1 parent 5fba6fa commit 9b6f301
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eventsourcing/application/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ProcessApplication(SimpleApplication):
set_notification_ids = False
use_causal_dependencies = False
notification_log_reader_class = NotificationLogReader
apply_policy_to_generated_events = False

def __init__(
self,
Expand All @@ -54,7 +55,10 @@ def __init__(
self.notification_log_reader_class = (
notification_log_reader_class or type(self).notification_log_reader_class
)
self.apply_policy_to_generated_events = apply_policy_to_generated_events
self.apply_policy_to_generated_events = (
apply_policy_to_generated_events
or type(self).apply_policy_to_generated_events
)

super(ProcessApplication, self).__init__(
name=name, setup_table=setup_table, **kwargs
Expand Down

0 comments on commit 9b6f301

Please sign in to comment.