summaryrefslogtreecommitdiffstats
path: root/modules/func_module.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-21 11:26:52 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-21 11:26:52 -0400
commita4ca1866ea731b67638a65c5cb8e052f07cdbaa1 (patch)
tree15bd5b6a75472e89f9e4815ee26be312140bad1a /modules/func_module.py
parentc0d315b2fd35c4ca8291f9a8c7f7be7bcd1cfa89 (diff)
downloadthird_party-func-a4ca1866ea731b67638a65c5cb8e052f07cdbaa1.tar.gz
third_party-func-a4ca1866ea731b67638a65c5cb8e052f07cdbaa1.tar.xz
third_party-func-a4ca1866ea731b67638a65c5cb8e052f07cdbaa1.zip
Rename web_svc as func_module.
Diffstat (limited to 'modules/func_module.py')
-rwxr-xr-xmodules/func_module.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/func_module.py b/modules/func_module.py
new file mode 100755
index 0000000..ec587c1
--- /dev/null
+++ b/modules/func_module.py
@@ -0,0 +1,43 @@
+#!/usr/bin/python
+
+##
+## Copyright 2007, Red Hat, Inc
+## see AUTHORS
+##
+## This software may be freely redistributed under the terms of the GNU
+## general public license.
+##
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+##
+
+from codes import *
+
+from server import config_data
+from server import logger
+
+import os
+import threading
+import time
+import traceback
+
+
+class FuncModule(object):
+ def __init__(self):
+
+ config_obj = config_data.Config()
+ config_result = config_obj.get()
+ self.config = config_result
+ self.__init_log()
+
+ def __init_log(self):
+ log = logger.Logger()
+ self.logger = log.logger
+
+ def register_rpc(self, handlers):
+ for meth in self.methods:
+ handlers[meth] = self.methods[meth]
+
+
+