~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/spread/interfaces.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

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
        """