~landscape/zope3/newer-from-ztk

« back to all changes in this revision

Viewing changes to src/twisted/spread/interfaces.py

  • Committer: Thomas Hervé
  • Date: 2009-07-08 13:52:04 UTC
  • Revision ID: thomas@canonical.com-20090708135204-df5eesrthifpylf8
Remove twisted copy

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
        """