magpie.api.schemas¶
Attributes¶
Classes¶
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
|
Fundamental building block of schemas. |
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
|
Fundamental building block of schemas. |
Fundamental building block of schemas. |
|
|
Fundamental building block of schemas. |
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
|
Fundamental building block of schemas. |
Functions¶
|
|
|
|
|
Return JSON Swagger specifications of Magpie REST API. |
Module Contents¶
- magpie.api.schemas.service_api_route_info(service_api: cornice.Service, **kwargs: Any) Dict[magpie.typedefs.Str, Any][source]¶
- class magpie.api.schemas.ServiceType_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResource_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permission_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupService_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResource_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermission_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserService_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermission_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResource_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermission_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Provider_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryURL_RequestPathSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.AcceptType(*arg, **kw)[source]¶
Bases:
colander.SchemaNodeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ContentType(*arg, **kw)[source]¶
Bases:
colander.SchemaNodeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RequestHeaderSchemaAPI(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RequestHeaderSchemaUI(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryRequestSchemaAPI(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryEffectivePermissions(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryInheritGroupsPermissions(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryResolvedUserGroupsPermissions(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryFilterResources(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryParentResources(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryCascadeResourcesPermissions(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryFlattenServices(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.QueryFilterServiceType(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PhoenixServicePushOption(*arg, **kw)[source]¶
Bases:
colander.SchemaNodeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.BaseRequestSchemaAPI(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.HeaderResponseSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.BaseResponseSchemaAPI(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.BaseResponseBodySchema(code, description, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ErrorVerifyParamConditions(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ErrorVerifyParamBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ErrorFallbackBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ErrorCallBodySchema(*arg, **kw)[source]¶
Bases:
ErrorFallbackBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ErrorResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UnauthorizedResponseBodySchema(**kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UnauthorizedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.HTTPForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.MethodNotAllowedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.NotAcceptableResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UnprocessableEntityResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProvidersListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypesListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ChildrenResourceTypesListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupNamesListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserNamesListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permission_Check_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionObjectSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionObjectTypeSchema(*arg, **kw)[source]¶
Bases:
PermissionObjectSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionObjectListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionNameListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionPatchObjectSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PermissionPatchListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permissions_PATCH_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permissions_PATCH_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permissions_PATCH_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permissions_PATCH_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Permissions_PATCH_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.BaseUserInfoSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.PendingUserInfoSchema(*arg, **kw)[source]¶
Bases:
BaseUserInfoSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisteredUserInfoSchema(*arg, **kw)[source]¶
Bases:
BaseUserInfoSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserBodySchema(*arg, **kw)[source]¶
Bases:
RegisteredUserInfoSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserDetailListSchema(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupBaseBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupPublicBodySchema(*arg, **kw)[source]¶
Bases:
GroupBaseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupInfoBodySchema(*arg, **kw)[source]¶
Bases:
GroupBaseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupDetailBodySchema(*arg, **kw)[source]¶
Bases:
GroupPublicBodySchema,GroupInfoBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceConfigurationSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceSummarySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceBodySchema(*arg, **kw)[source]¶
Bases:
ServiceSummarySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceDetailSchema(*arg, **kw)[source]¶
Bases:
ServiceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ChildrenContainerWithoutChildResourceBodySchema(*arg, **kw)[source]¶
Bases:
ResourceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ChildResourceWithoutChildrenBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ParentResourceWithChildrenContainerBodySchema(*arg, **kw)[source]¶
Bases:
ResourceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ChildrenContainerWithChildResourceBodySchema(*arg, **kw)[source]¶
Bases:
ResourceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ChildResourceWithChildrenContainerBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ServiceWithChildrenResourcesContainerBodySchema(*arg, **kw)[source]¶
Bases:
ServiceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ServiceType_geoserverapi_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ServiceType_ncwms_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_ServiceType_thredds_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourcesSchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_GET_RequestQuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryParentResourcesFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_MatchDictCheck_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_MatchDictCheck_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_MatchDictCheck_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_GET_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_PATCH_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_DELETE_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resource_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Resources_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourcePermissions_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourcePermissions_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourcePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourcePermissions_GET_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypes_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypes_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypes_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResourcesBodySchema(*arg, **kw)[source]¶
Bases:
ServiceBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_access_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_geoserverapi_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_geoserverwms_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_ncwms_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_projectapi_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_thredds_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_wfs_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceType_wps_SchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypesList(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceListingQuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryFlattenServicesFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypes_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypes_GET_OkResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypes_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicesCategorizedSchemaNode(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_SummaryBodyResponseSchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_SuccessBodyResponseSchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_DetailBodyResponseSchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicesListingSchemaNode(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_MatchDictCheck_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_MatchDictCheck_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_CheckConfig_UnprocessableEntityResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicesQuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryFlattenServices,QueryFilterServiceTypeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_GET_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_BodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_CreatedResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_Params_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_UnprocessableEntityResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Services_POST_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_ForbiddenResponseSchema_ReservedKeyword(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_PATCH_UnprocessableEntityResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Service_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicePermissions_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicePermissions_GET_BadRequestResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServicePermissions_GET_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
Resources_POST_RequestSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
Resources_POST_ForbiddenResponseSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_POST_UnprocessableEntityResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResource_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
Resource_GET_RequestSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResource_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
Resource_DELETE_RequestSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypesAllowed(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceTypeChildrenAllowed(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ResourceStructuresAllowed(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceInfo(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourcesList(*args, **kw)[source]¶
Bases:
colander.SequenceSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResources_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResources_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceTypes_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceTypes_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceTypes_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceTypes_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ServiceTypeResourceTypes_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UsersQuery(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_GET_BadRequestSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_UserNameValue_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_UserNameValueExtraRegex_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_UserNameSize_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_Email_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_PasswordValue_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_PasswordSize_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_GroupName_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_CheckInfo_ReservedKeyword_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_Check_Status_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_Check_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_Check_Name_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_Check_Email_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserNew_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_PATCH_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_PATCH_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Users_PATCH_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_PATCH_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_PATCH_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_PATCH_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_CheckAnonymous_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_CheckAnonymous_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.User_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_Check_Status_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroupsQuery(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_AcceptedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_GroupNotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_RelationshipForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_ConflictResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroups_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_Check_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_Check_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_Check_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserGroup_DELETE_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResources_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryInheritGroupsPermissions,QueryResolvedUserGroupsPermissions,QueryFilterResources,QueryFilterServiceTypeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResources_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_Check_ParamResponseBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_Check_ErrorResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_Check_ErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryInheritGroupsPermissions,QueryResolvedUserGroupsPermissions,QueryEffectivePermissionsFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_BadRequestParamResponseSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_BadRequestResponseBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_BadRequestRootServiceResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_BadRequestResourceResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_BadRequestResourceTypeResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_PUT_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissionName_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissionName_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissionName_DELETE_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_DELETE_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserResourcePermissions_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServiceResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServiceResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServiceResources_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryInheritGroupsPermissions,QueryResolvedUserGroupsPermissionsFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServiceResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_DELETE_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissionName_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServices_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryCascadeResourcesPermissions,QueryInheritGroupsPermissions,QueryFlattenServices,QueryFilterServiceTypeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServices_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServices_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServices_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryInheritGroupsPermissions,QueryResolvedUserGroupsPermissionsFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.UserServicePermissions_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_MatchDictCheck_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_MatchDictCheck_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_CheckInfo_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_CheckInfo_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_ForbiddenCreateResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_ForbiddenAddResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Groups_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_None_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_Name_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_Size_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_ReservedKeyword_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_PATCH_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Group_DELETE_ReservedKeyword_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupUsers_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupUsers_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupUsers_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupUsers_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryFilterServiceTypeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServices_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_GET_InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_GET_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_POST_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissions_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_Check_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_Check_ErrorResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_Check_ErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_ForbiddenAddResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_ForbiddenCreateResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_ForbiddenGetResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_PUT_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissionName_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_DELETE_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcesPermissions_InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcesPermissions_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_QuerySchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,QueryFilterServiceTypeFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_InternalServerErrorResponseBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResources_GET_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupResourcePermissions_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServiceResources_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServiceResources_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServiceResources_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_RequestBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermissionName_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_ForbiddenGetResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.GroupServicePermission_DELETE_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroups_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroups_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroups_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterGroup_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUserBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_POST_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUsers_POST_CreatedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_Check_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_Check_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_DELETE_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.RegisterUser_DELETE_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryURL_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryURL_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryURL_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryURL_GET_GoneResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.TemporaryToken_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Session_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Session_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Session_GET_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProvidersBodySchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Providers_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Providers_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_RequestHeaderSchema(*arg, **kw)[source]¶
Bases:
RequestHeaderSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_FoundResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_FoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_BadRequestResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_UnauthorizedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_NotFoundResponseBodySchema(code: int, description: str, **kw: Any)[source]¶
Bases:
ErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.ProviderSignin_GET_NotFoundResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_BaseRequestSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.SigninQueryParamSchema(*arg, **kw)[source]¶
Bases:
QueryRequestSchemaAPI,Signin_BaseRequestSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_GET_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_RequestSchema(*arg, **kw)[source]¶
Bases:
BaseRequestSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_BadRequestResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_UnauthorizedResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_ForbiddenResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_ConflictResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_InternalServerErrorBodySchema(**kw: Any)[source]¶
Bases:
InternalServerErrorResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_Internal_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signin_POST_External_InternalServerErrorResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Signout_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Version_GET_ResponseBodySchema(code, description, **kw)[source]¶
Bases:
BaseResponseBodySchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Version_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.Homepage_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
BaseResponseSchemaAPIFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- class magpie.api.schemas.SwaggerAPI_GET_OkResponseSchema(*arg, **kw)[source]¶
Bases:
colander.MappingSchemaFundamental building block of schemas.
The constructor accepts these positional arguments:
typ: The ‘type’ for this node. It should be an instance of a class that implements thecolander.interfaces.Typeinterface. Iftypis not passed, a call to theschema_type()method on this class is made to get a default type. (When subclassing,schema_type()should be overridden to provide a reasonable default type).*children: a sequence of subnodes. If the subnodes of this node are not known at construction time, they can later be added via theaddmethod.
The constructor accepts these keyword arguments:
name: The name of this node.typ: The ‘type’ for this node can optionally be passed in as a keyword argument. See the documentation for the positional arg above.default: The default serialization value for this node when not set. Ifdefaultiscolander.drop, the node will be dropped from schema serialization. If not provided, the node will be serialized tocolander.null.missing: The default deserialization value for this node. If it is not provided, the missing value of this node will be the special marker valuecolander.required, indicating that it is considered ‘required’. Whenmissingiscolander.required, therequiredcomputed attribute will beTrue. Whenmissingiscolander.drop, the node is dropped from the schema if it isn’t set during deserialization.missing_msg: Optional error message to be used if the value is required and missing.preparer: Optional preparer for this node. It should be an object that implements thecolander.interfaces.Preparerinterface.validator: Optional validator for this node. It should be an object that implements thecolander.interfaces.Validatorinterface.after_bind: A callback which is called after a clone of this node has ‘bound’ all of its values successfully. This callback is useful for performing arbitrary actions to the cloned node, or direct children of the cloned node (such as removing or adding children) at bind time. A ‘binding’ is the result of an execution of thebindmethod of the clone’s prototype node, or one of the parents of the clone’s prototype nodes. The deepest nodes in the node tree are bound first, so theafter_bindmethods of the deepest nodes are called before the shallowest. Theafter_bindcallback should accept two values:nodeandkw.nodewill be a clone of the bound node object,kwwill be the set of keywords passed to thebindmethod.title: The title of this node. Defaults to a titleization of thename(underscores replaced with empty strings and the first letter of every resulting word capitalized). The title is used by higher-level systems (not by Colander itself).description: The description for this node. Defaults to''(the empty string). The description is used by higher-level systems (not by Colander itself).widget: The ‘widget’ for this node. Defaults toNone. The widget attribute is not interpreted by Colander itself, it is only meaningful to higher-level systems such as Deform.insert_before: if supplied, it names a sibling defined by a superclass for its parent node; the current node will be inserted before the named node. It is not useful unless a mapping schema is inherited from another mapping schema, and you need to control the ordering of the resulting nodes.
Arbitrary keyword arguments remaining will be attached to the node object unmolested.
- magpie.api.schemas.generate_api_schema(swagger_base_spec: Dict[magpie.typedefs.Str, magpie.typedefs.Str | List[magpie.typedefs.Str]]) magpie.typedefs.JSON[source]¶
Return JSON Swagger specifications of Magpie REST API.
Uses Cornice Services and Schemas to return swagger specification.
- Parameters:
swagger_base_spec – dictionary that specifies the ‘host’ and list of HTTP ‘schemes’ to employ.