Example #1
0
class UpdatedResourcesSchema(MappingSchema):
    """List the resources affected by a transaction."""

    created = Resources()
    modified = Resources()
    removed = Resources()
    changed_descendants = Resources()
Example #2
0
 def make_one(self, **kwargs):
     from adhocracy_core.schema import Resources
     return Resources(**kwargs).bind()
Example #3
0
class POSTItemRequestSchema(POSTResourceRequestSchema):
    """Data structure for Item and ItemVersion POST requests."""

    root_versions = Resources(missing=[], validator=validate_root_versions)