diff frontends/src/jp/common.py @ 814:59c7bc51c323

jp: refactoring using ArgParse
author Dal <kedals0@gmail.com>
date Wed, 05 Feb 2014 14:35:26 +0100
parents frontends/src/jp/jp@1fe00f0c9a91
children f8d534ed1d1e
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontends/src/jp/common.py	Wed Feb 05 14:35:26 2014 +0100
@@ -0,0 +1,9 @@
+
+
+class MissingPlugin(Exception):
+    pass
+
+def require(plugin_name):
+    suported_plugins = ["profile"]
+    if plugin_name not in Supported_plugins:
+        raise MissingPlugin