Mercurial > libervia-backend
view src/plugins/__init__.py @ 1370:53c7678c27a6
plugin text commands: added _contextValid method:
- _contextValid check if a method can be called in this context, according to docstring declaration
- use it to parse results in /help command
- use it avoid use of command in wrong context, and help message is sent in this case
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 19 Mar 2015 14:29:03 +0100 |
parents | ed2c718bfe03 |
children | c7fd121a6180 |
line wrap: on
line source
# TODO: remove this when RSM and MAM are in wokkel import wokkel from sat.tmp.wokkel import delay as tmp_delay, pubsub as tmp_pubsub, rsm as tmp_rsm, mam as tmp_mam wokkel.delay = tmp_delay wokkel.pubsub = tmp_pubsub wokkel.rsm = tmp_rsm wokkel.mam = tmp_mam