AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.116.10.48


Current Path : /usr/lib/python3/dist-packages/twisted/spread/
Upload File :
Current File : //usr/lib/python3/dist-packages/twisted/spread/interfaces.py

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
Twisted Spread Interfaces.
"""

from zope.interface import Interface


class IJellyable(Interface):
    def jellyFor(jellier):
        """
        Jelly myself for jellier.
        """


class IUnjellyable(Interface):
    def unjellyFor(jellier, jellyList):
        """
        Unjelly myself for the jellier.

        @param jellier: A stateful object which exists for the lifetime of a
        single call to L{unjelly}.

        @param jellyList: The C{list} which represents the jellied state of the
        object to be unjellied.

        @return: The object which results from unjellying.
        """