"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "barbican/common/validators.py" between
barbican-11.0.0.tar.gz and barbican-12.0.0.tar.gz

About: OpenStack Barbican is the OpenStack Key Manager service. It provides secure storage, provisioning and management of secret data.
The "Wallaby" series (latest release).

validators.py  (barbican-11.0.0):validators.py  (barbican-12.0.0)
skipping to change at line 84 skipping to change at line 84
if container.type != 'rsa': if container.type != 'rsa':
reason = u._("Container Wrong Type") reason = u._("Container Wrong Type")
raise exception.InvalidContainer(reason=reason) raise exception.InvalidContainer(reason=reason)
ctxt = controllers._get_barbican_context(req) ctxt = controllers._get_barbican_context(req)
inst = controllers.containers.ContainerController(container) inst = controllers.containers.ContainerController(container)
controllers._do_enforce_rbac(inst, req, controllers._do_enforce_rbac(inst, req,
controllers.containers.CONTAINER_GET, controllers.containers.CONTAINER_GET,
ctxt) ctxt)
@six.add_metaclass(abc.ABCMeta) class ValidatorBase(object, metaclass=abc.ABCMeta):
class ValidatorBase(object):
"""Base class for validators.""" """Base class for validators."""
name = '' name = ''
@abc.abstractmethod @abc.abstractmethod
def validate(self, json_data, parent_schema=None): def validate(self, json_data, parent_schema=None):
"""Validate the input JSON. """Validate the input JSON.
:param json_data: JSON to validate against this class' internal schema. :param json_data: JSON to validate against this class' internal schema.
:param parent_schema: Name of the parent schema to this schema. :param parent_schema: Name of the parent schema to this schema.
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)