summaryrefslogtreecommitdiffstats
path: root/modules/func_module.py
Commit message (Collapse)AuthorAgeFilesLines
* pyflakes cleanupsAdrian Likins2007-09-241-6/+2
| | | | | | | mostly just removing unused modules change "from codes import *" to "import codes" in a couple places and updated accordingly
* add some simple support for base object methodsAdrian Likins2007-09-241-1/+22
| | | | | | | | | | | | | add "module_version", "module_api_version" and "module_description" as base object methods. All classes based on func_module should get this. modules should set a self.version, self.api_version, self.description with approriate values. class or instance variables both work. If values aren't set, defaults are provided. alternativelt, the modules can implement and export "module_version", "module_api_version", and "module_description" themself if they like
* change to module loader to allow subdirs in the module path.Adrian Likins2007-09-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | This also implies that methods calls need a module as well (aka, you now have to call test.test_add instead of just test_add) but this also means you can setup modules/foo/bar/blip.py and blip.py exports a "do_blippy" method, which you would call by the name foo.bar.blip.do_blippy() Note, any subdir that has module files in it, will need an approriate __init__.py file. server.py, func_module.py: To do the above, we need to pass in the module_name to the register function, so we can associate it correctly. server.py also got a fix for a FuncException that needed tobe codes.FuncException
* Rename web_svc as func_module.Michael DeHaan2007-09-211-0/+43