blob: 4b8b28935b6b4ad3ba09a529750e772ebbed1e07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# 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.
"""
|