From f3b1a20b183c612caf5122ebc4540a8fe4fff486 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 22 Nov 2005 01:35:40 +0000 Subject: use boundFunction from tools --- lib/python/Components/NimManager.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py index e7593200..14517d75 100644 --- a/lib/python/Components/NimManager.py +++ b/lib/python/Components/NimManager.py @@ -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 -- cgit v1.2.3