404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@13.58.39.166: ~ $
##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Interface-specific exceptions
"""

class Invalid(Exception):
    """A specification is violated
    """

class DoesNotImplement(Invalid):
    """ This object does not implement """
    def __init__(self, interface):
        self.interface = interface

    def __str__(self):
        return """An object does not implement interface %(interface)s

        """ % self.__dict__

class BrokenImplementation(Invalid):
    """An attribute is not completely implemented.
    """

    def __init__(self, interface, name):
        self.interface=interface
        self.name=name

    def __str__(self):
        return """An object has failed to implement interface %(interface)s

        The %(name)s attribute was not provided.
        """ % self.__dict__

class BrokenMethodImplementation(Invalid):
    """An method is not completely implemented.
    """

    def __init__(self, method, mess):
        self.method=method
        self.mess=mess

    def __str__(self):
        return """The implementation of %(method)s violates its contract
        because %(mess)s.
        """ % self.__dict__

class InvalidInterface(Exception):
    """The interface has invalid contents
    """

class BadImplements(TypeError):
    """An implementation assertion is invalid

    because it doesn't contain an interface or a sequence of valid
    implementation assertions.
    """

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
common Folder 0755
__init__.py File 3.33 KB 0644
_compat.py File 1.65 KB 0644
_flatten.py File 1.03 KB 0644
_zope_interface_coptimizations.cpython-36m-x86_64-linux-gnu.so File 32.54 KB 0755
adapter.py File 22.87 KB 0644
advice.py File 7.31 KB 0644
declarations.py File 30.85 KB 0644
document.py File 3.89 KB 0644
exceptions.py File 1.95 KB 0644
interface.py File 20.02 KB 0644
interfaces.py File 42.11 KB 0644
registry.py File 22.74 KB 0644
ro.py File 1.96 KB 0644
verify.py File 4.78 KB 0644