| Trees | Indices | Help |
|
|---|
|
|
Record entry for list of patch tasks.
Attributes:
op: operations:
add, copy, move, remove, replace, test
target: JSONPointer for the modification target, see RFC6902.
value: Value, either a branch, or a leaf of the JSON data structure.
src: JSONPointer for the modification source, see RFC6902.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Create an entry for the patch list.
Args:
op: Operation: add, copy, move, remove, replace, test
target: Target node.
param: Parameter specific for the operation:
value: add,replace, test
src: copy, move
param:=None for 'remove'
Returns:
When successful returns 'True', else returns either 'False', or
raises an exception.
Success is the complete addition only, thus one failure returns
False.
Raises:
JSONDataSerializerError:
|
Evaluates the related task for the provided data.
Args:
j: JSON data the task has to be
applied on.
Returns:
Returns a tuple of:
0: len of the job list
1: list of the execution status for
the tasks
Raises:
JSONPatchException:
|
Compares this pointer with x.
Args:
x: A valid Pointer.
Returns:
True or False
Raises:
JSONPointerException
|
Support of various mappings. #. self[key] #. self[i:j:k] #. x in self #. for x in self |
Compares this pointer with x.
Args:
x: A valid Pointer.
Returns:
True or False
Raises:
JSONPointerException
|
Prints the patch string in accordance to RFC6901.
|
Prints the patch string in accordance to RFC6901.
|
Applies the present patch list on the provided JSON document.
Args:
jsondata: Document to be patched.
Returns:
When successful returns 'True', else raises an exception.
Or returns a tuple:
(n,lerr): n: number of present active entries
lerr: list of failed entries
Raises:
JSONPatchException:
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Feb 6 07:50:51 2017 | http://epydoc.sourceforge.net |