Initial import to Tizen
[profile/ivi/python-twisted.git] / twisted / spread / interfaces.py
1 """
2 Twisted Spread Interfaces.
3
4 This module is unused so far. It's also undecided whether this module
5 will remain monolithic.
6 """
7
8 from zope.interface import Interface
9
10 class IJellyable(Interface):
11     def jellyFor(jellier):
12         """
13         Jelly myself for jellier.
14         """
15
16 class IUnjellyable(Interface):
17     def unjellyFor(jellier, jellyList):
18         """
19         Unjelly myself for the jellier.
20
21         @param jellier: A stateful object which exists for the lifetime of a
22         single call to L{unjelly}.
23
24         @param jellyList: The C{list} which represents the jellied state of the
25         object to be unjellied.
26
27         @return: The object which results from unjellying.
28         """