Skip to content

Commit

Permalink
Fix #3097: Improve documentation of get_action.
Browse files Browse the repository at this point in the history
Mention that context dicts should not be reused.
  • Loading branch information
torfsen committed Jun 8, 2016
1 parent c148f45 commit ec04d6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/logic/__init__.py
Expand Up @@ -343,6 +343,12 @@ def get_action(action):
If a ``context`` of ``None`` is passed to the action function then the
default context dict will be created.
.. note::
Many action functions modify the context dict. It can therefore
not be reused for multiple calls of the same or different action
functions.
:param action: name of the action function to return,
eg. ``'package_create'``
:type action: string
Expand Down

0 comments on commit ec04d6d

Please sign in to comment.