comparison src/plugins/plugin_misc_extra_pep.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 2daf7b4c6756
children
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _, D_ 20 from sat.core.i18n import _, D_
21 from sat.core.constants import Const as C
21 from sat.core.log import getLogger 22 from sat.core.log import getLogger
22 log = getLogger(__name__) 23 log = getLogger(__name__)
23 from sat.memory import params 24 from sat.memory import params
24 from twisted.words.protocols.jabber import jid 25 from twisted.words.protocols.jabber import jid
25 26
26 27
27 PLUGIN_INFO = { 28 PLUGIN_INFO = {
28 "name": "Extra PEP", 29 C.PI_NAME: "Extra PEP",
29 "import_name": "EXTRA-PEP", 30 C.PI_IMPORT_NAME: "EXTRA-PEP",
30 "type": "MISC", 31 C.PI_TYPE: "MISC",
31 "protocols": [], 32 C.PI_PROTOCOLS: [],
32 "dependencies": [], 33 C.PI_DEPENDENCIES: [],
33 "recommendations": [], 34 C.PI_RECOMMENDATIONS: [],
34 "main": "ExtraPEP", 35 C.PI_MAIN: "ExtraPEP",
35 "handler": "no", 36 C.PI_HANDLER: "no",
36 "description": _(u"""Display messages from extra PEP services""") 37 C.PI_DESCRIPTION: _(u"""Display messages from extra PEP services""")
37 } 38 }
38 39
39 40
40 PARAM_KEY = u"Misc" 41 PARAM_KEY = u"Misc"
41 PARAM_NAME = u"blogs" 42 PARAM_NAME = u"blogs"