summaryrefslogtreecommitdiffstats
path: root/modules/func_module.py
diff options
context:
space:
mode:
authorRobin Norwood <rnorwood@solitude.devel.redhat.com>2007-09-21 12:07:40 -0400
committerRobin Norwood <rnorwood@solitude.devel.redhat.com>2007-09-21 12:07:40 -0400
commit15744d6ff91a583fabb7554bed16bc249bc38c32 (patch)
treefd37cdbd0d0dd04fca2654a74cd58f66833c2ed8 /modules/func_module.py
parent62bf26a5f7fed44ba703e3b854a4923ce1447f27 (diff)
parent75677513dd6d1f79a0411fec942ad4968d86dd25 (diff)
downloadfunc-15744d6ff91a583fabb7554bed16bc249bc38c32.tar.gz
func-15744d6ff91a583fabb7554bed16bc249bc38c32.tar.xz
func-15744d6ff91a583fabb7554bed16bc249bc38c32.zip
Merge branch 'master' of git://git.fedoraproject.org/git/hosted/func
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]
+
+
+