diff src/plugins/plugin_misc_ip.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 1d3f73e065e1
children a543eda2c923
line wrap: on
line diff
--- a/src/plugins/plugin_misc_ip.py	Sun Feb 12 17:55:43 2017 +0100
+++ b/src/plugins/plugin_misc_ip.py	Sun Feb 12 18:59:10 2017 +0100
@@ -42,14 +42,14 @@
 
 
 PLUGIN_INFO = {
-    "name": "IP discovery",
-    "import_name": "IP",
-    "type": C.PLUG_TYPE_MISC,
-    "protocols": ["XEP-0279"],
-    "recommendations": ["NAT-PORT"],
-    "main": "IPPlugin",
-    "handler": "yes",
-    "description": _("""This plugin help to discover our external IP address.""")
+    C.PI_NAME: "IP discovery",
+    C.PI_IMPORT_NAME: "IP",
+    C.PI_TYPE: C.PLUG_TYPE_MISC,
+    C.PI_PROTOCOLS: ["XEP-0279"],
+    C.PI_RECOMMENDATIONS: ["NAT-PORT"],
+    C.PI_MAIN: "IPPlugin",
+    C.PI_HANDLER: "yes",
+    C.PI_DESCRIPTION: _("""This plugin help to discover our external IP address.""")
 }
 
 # TODO: GET_IP_PAGE should be configurable in sat.conf