summaryrefslogtreecommitdiffstats
path: root/modules/test.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-24 11:49:34 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-24 11:49:34 -0400
commit5fa80f5d7609e60daee6a14476182e73f33c2cf7 (patch)
treea2016764279b4ab624cc9b41b3c9deeeb56bfaf5 /modules/test.py
parenta656879954105065b2fabed8f77993387c73f9b6 (diff)
downloadthird_party-func-5fa80f5d7609e60daee6a14476182e73f33c2cf7.tar.gz
third_party-func-5fa80f5d7609e60daee6a14476182e73f33c2cf7.tar.xz
third_party-func-5fa80f5d7609e60daee6a14476182e73f33c2cf7.zip
add some simple support for base object methods
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
Diffstat (limited to 'modules/test.py')
-rwxr-xr-xmodules/test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/test.py b/modules/test.py
index 31f1e94..ea22007 100755
--- a/modules/test.py
+++ b/modules/test.py
@@ -4,6 +4,9 @@ from codes import *
from modules import func_module
class Test(func_module.FuncModule):
+ version = "11.11.11"
+ api_version = "0.0.1"
+ description = "Just a very simple example module"
def __init__(self):
self.methods = {
"add": self.add