Skip to content
Snippets Groups Projects
Commit 4afac883 authored by Erik Johnston's avatar Erik Johnston
Browse files

Add basic docstring to annotate_context_with_state

parent 3c77d13a
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,17 @@ class StateHandler(object): ...@@ -137,6 +137,17 @@ class StateHandler(object):
@defer.inlineCallbacks @defer.inlineCallbacks
def annotate_context_with_state(self, event, context, old_state=None): def annotate_context_with_state(self, event, context, old_state=None):
""" Fills out the context with the `current state` of the graph. The
`current state` here is defined to be exclusive of the given event,
i.e. its the state of the event graph just before the event.
If `event` has `auth_events` then this will also fill out the
`auth_events` field on `context` from the `current_state`.
Args:
event (EventBase)
context (EventContext)
"""
yield run_on_reactor() yield run_on_reactor()
if old_state: if old_state:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment