Mercurial > libervia-backend
annotate 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 |
rev | line source |
---|---|
393 | 1 |
587
952322b1d490
Remove trailing whitespaces.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
572
diff
changeset
|
2 |
814 | 3 class MissingPlugin(Exception): |
4 pass | |
0 | 5 |
814 | 6 def require(plugin_name): |
7 suported_plugins = ["profile"] | |
8 if plugin_name not in Supported_plugins: | |
9 raise MissingPlugin |