~certify-web-dev/twisted/certify-trunk

« back to all changes in this revision

Viewing changes to twisted/spread/interfaces.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-17 14:52:35 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20070117145235-btmig6qfmqfen0om
Tags: 2.5.0-0ubuntu1
New upstream version, compatible with python2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
will remain monolithic.
6
6
"""
7
7
 
8
 
from twisted.python.components import Interface
 
8
from zope.interface import Interface
9
9
 
10
10
class IJellyable(Interface):
11
 
    def jellyFor(self, jellier):
 
11
    def jellyFor(jellier):
12
12
        """
13
13
        Jelly myself for jellier.
14
14
        """
15
15
 
16
16
class IUnjellyable(Interface):
17
 
    def unjellyFor(self, jellier):
 
17
    def unjellyFor(jellier, jellyList):
18
18
        """
19
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.
20
28
        """