| 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 'Software Quotes' plugin """ |
| 12 |
|
| 13 |
|
| 14 |
from traits.api import List |
| 15 |
|
| 16 |
# Enthought library imports. |
| 17 |
from envisage.api import Plugin |
| 18 |
|
| 19 |
|
| 20 |
class SoftwareQuotesPlugin(Plugin): |
| 21 |
"""The 'Software Quotes' plugin.""" |
| 22 |
|
| 23 |
#### 'IPlugin' interface ################################################## |
| 24 |
|
| 25 |
# The plugin's unique identifier. |
| 26 |
id = "acme.motd.software_quotes" |
| 27 |
|
| 28 |
# The plugin's name (suitable for displaying to the user). |
| 29 |
name = "Software Quotes" |
| 30 |
|
| 31 |
#### Extension points offered by this plugin ############################## |
| 32 |
|
| 33 |
# None |
| 34 |
|
| 35 |
#### Contributions to extension points made by this plugin ################ |
| 36 |
|
| 37 |
# Messages for the 'Message Of The Day'. |
| 38 |
messages = List(contributes_to="acme.motd.messages") |
| 39 |
|
| 40 |
def _messages_default(self): |
| 41 |
"""Trait initializer.""" |
| 42 |
|
| 43 |
# Only do imports when you need to! |
| 44 |
from acme.motd.software_quotes.messages import messages |
| 45 |
|
| 46 |
return messages |