From 02d676bda89c2fb8469ea81f7429c19c1e29df7c Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 15 Jul 2023 14:44:41 +0200 Subject: Initial commit --- interfaces/message.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 interfaces/message.py (limited to 'interfaces/message.py') diff --git a/interfaces/message.py b/interfaces/message.py new file mode 100755 index 0000000..23ce2ec --- /dev/null +++ b/interfaces/message.py @@ -0,0 +1,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 -- cgit v1.2.3