You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
@@ -60,22 +60,26 @@ You can also inspect the document URL and title.
60
60
61
61
### Interacting with documents
62
62
63
-
Documents in the Python Core API library are immutable objects. To perform a transition we call the `.action()`method and assign the resulting new document.
63
+
Documents in the Python Core API library are immutable objects. To perform a transition we use the `.action()`function and assign the resulting new document.
64
64
65
-
>>> doc = doc.action(['add_note'], description='My new note.')
65
+
>>> doc = coreapi.action(doc, ['add_note'], description='My new note.')
66
66
67
-
The first argument to `.action()`is a list of strings or integers, indexing the link to act on. Any extra keyword arguments are passed as parameters to the link.
67
+
The arguments to `.action()` are:
68
68
69
-
Transitions may update of the document tree.
69
+
* The existing document.
70
+
* A string or list of strings or integers, indexing the link to act on.
71
+
* Any parameters to use when the acting on the link.
0 commit comments