Trees | Indices | Help |
|
---|
|
Representation of a JSONPatch task list for RFC6902. Contains the defined methods from standards: * add * remove * replace * move * copy * test Attributes: patch: List of patch items.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
patch List of patch tasks. |
|||
deep Defines copy operations, True:=deep, False:=swallow |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Evaluates the related task for the provided index. Args: x: Task index. 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 slices, for 'iterator' refer to self.__iter__. #. self[key] #. self[i:j:k] #. x in self #. for x in self |
Removes the patch job from the task queue in place. Removes one of the following type(x) variants: int: The patch job with given index. JSONPatchItem: The first matching entry from the task queue. Args: x: Item to be removed. Returns: Returns resulting list without x. Raises: JSONPatchException: |
Compares this pointer with x. Args: x: A valid Pointer. Returns: True or False Raises: JSONPointerException |
Prints the representation format of a JSON patch list.
|
Prints the display format.
|
Removes the patch job from the task queue. Removes one of the following type(x) variants: int: The patch job with given index. JSONPatchItem: The first matching entry from the task queue. Args: x: Item to be removed. Returns: Returns resulting list without x. Raises: JSONPatchException: |
Applies the JSONPatch task. Args: jsondata: JSON data the joblist 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: |
Exports the current task list. Provided formats are: RFC6902 Supports the formats: RFC6902 Args: patchfile: JSON patch for export. schema: JSON-Schema for validation of the patch list. **kargs: validator: [default, draft3, off, ] Sets schema validator for the data file. The values are: default=validate, draft3=Draft3Validator, off=None. default:= validate Returns: When successful returns 'True', else raises an exception. Raises: JSONPatchException: |
Imports a task list. Supports the formats: RFC6902 Args: patchfile: JSON patch filename containing the list of patch operations. schemafile: JSON-Schema filename for validation of the patch list. **kargs: validator: [default, draft3, off, ] Sets schema validator for the data file. The values are: default=validate, draft3=Draft3Validator, off=None. default:= validate Returns: When successful returns 'True', else raises an exception. Raises: JSONPatchException: |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Feb 6 07:50:51 2017 | http://epydoc.sourceforge.net |