Debian Codegraph @

envisage/examples/demo/MOTD/acme/motd/message.py

raw
1 # (C) Copyright 2007-2025 Enthought, Inc., Austin, TX
2 # All rights reserved.
3 #
4 # This software is provided without warranty under the terms of the BSD
5 # license included in LICENSE.txt and may be redistributed only under
6 # the conditions described in the aforementioned license. The license
7 # is also available online at http://www.enthought.com/licenses/BSD.txt
8 #
9 # Thanks for using Enthought open source!
10
11 """ The default implementation of the 'IMessage' interface. """
12
13
14 # Local imports.
15 from acme.motd.i_message import IMessage
16
17 # Enthought library imports.
18 from traits.api import HasTraits, provides, Str
19
20
21 @provides(IMessage)
22 class Message(HasTraits):
23 """The default implementation of the 'IMessage' interface."""
24
25 # The author of the message.
26 author = Str
27
28 # The text of the message.
29 text = Str