summaryrefslogtreecommitdiffstats
path: root/scripts/func
diff options
context:
space:
mode:
authorLuke Macken <lmacken@redhat.com>2008-01-15 17:42:05 -0500
committerLuke Macken <lmacken@redhat.com>2008-01-15 17:42:05 -0500
commit23c9c26d270ff766133e7aeebffc99a35633ef41 (patch)
treed68c5030efd41b5de10dcf7d92b1fa2c0c86b445 /scripts/func
parentc4371ce647118902dd7574394d86c690c9be686e (diff)
downloadthird_party-func-23c9c26d270ff766133e7aeebffc99a35633ef41.tar.gz
third_party-func-23c9c26d270ff766133e7aeebffc99a35633ef41.tar.xz
third_party-func-23c9c26d270ff766133e7aeebffc99a35633ef41.zip
Simplify our modules by auto-detecting them and registering their handlers
- Auto-detect and load all FuncModules. This obsoletes the need to have our modules define a register_rpc method. - Use introspection in our FuncModule to auto-register all method handlers that do not being with an underscore. This obsoletes the need to hardcode methods in our modules. - Remove all __init__ methods from our modules, along with register_rpc - Modify the func-create-module script to reflect these changes. Note that doing 'from modules import func_module' is no longer supported in our modules, do to some interesting path issues with our auto-detection code. Supported methods are now: 'import func_module' or 'from func.minion.modules import func_module'
Diffstat (limited to 'scripts/func')
0 files changed, 0 insertions, 0 deletions