use boundFunction from tools
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 22 Nov 2005 01:35:40 +0000 (01:35 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 22 Nov 2005 01:35:40 +0000 (01:35 +0000)
lib/python/Components/NimManager.py

index e759320..14517d7 100644 (file)
@@ -18,6 +18,8 @@ from Tools import XMLTools
 from xml.sax import make_parser
 from xml.sax.handler import ContentHandler
 
+from Tools.BoundFunction import boundFunction
+
 def tryOpen(filename):
        try:
                procFile = open(filename)
@@ -84,13 +86,6 @@ class SecConfigure:
                self.NimManager = nimmgr
                self.update()
                
-class boundFunction:
-       def __init__(self, fnc, *args):
-               self.fnc = fnc
-               self.args = args
-       def __call__(self, *args):
-               self.fnc(*self.args + args)
-
 class nimSlot:
        def __init__(self, slotid, nimtype, name):
                self.slotid = slotid