diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2023-07-15 14:44:41 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2023-07-15 14:59:43 +0200 |
commit | 02d676bda89c2fb8469ea81f7429c19c1e29df7c (patch) | |
tree | 11dae86a561a4800661e6c174b47611a704f857e /interfaces/message.py |
Initial commit
Diffstat (limited to 'interfaces/message.py')
-rwxr-xr-x | interfaces/message.py | 14 |
1 files changed, 14 insertions, 0 deletions
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
|