translate weekdays in fuzzy date display
[enigma2.git] / lib / python / Tools / BoundFunction.py
index 5447451..29e8f61 100644 (file)
@@ -1,6 +1,11 @@
 class boundFunction:
-       def __init__(self, fnc, *args):
+       def __init__(self, fnc, *args, **kwargs):
                self.fnc = fnc
                self.args = args
-       def __call__(self, *args):
-               self.fnc(*self.args + args)
+               self.kwargs = kwargs
+       def __call__(self, *args, **kwargs):
+               newkwargs = self.kwargs
+               newkwargs.update(kwargs)
+               return self.fnc(*self.args + args, **newkwargs)
+               
+