aboutsummaryrefslogtreecommitdiff
path: root/interfaces/message.py
blob: 23ce2ecd489f5cd186bf5fe7ecf66f704379e85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from zope import interface
from zope.interface import Attribute

class IMessage(interface.Interface):
    content = Attribute("""The text message to log""")

class ISocketMessage(interface.Interface):
    content = Attribute("""Content to send""")

@interface.implementer(IMessage)
class Debug(object):

    def __init__(self, message):
        self.content = message