not obvious how to use rel_path
Submitted by Olaf Lüke
Assigned to Simon McVittie
Description
Created attachment 18931 fix-rel-path.patch
In line 290 in decorators.py it says: if rel_path_keyword is not None: rel_path = keywords.pop(rel_path_keyword, None)
func(self, *args, **keywords)
Now lets assume we have the following: @dbus.service.signal(IFACE, rel_path_keyword='path', signature='s') def f(x, path)
I can now call f('a', path='/example'), but it won't work, because dbus will call f(x) (without path=..)
If i define: @dbus.service.signal(IFACE, rel_path_keyword='path', signature='s') def f(x)
I can't call f with path=..
So at the moment it is not usable at all, or do i miss something? My suggestion would be to move the function call some lines up
Patch 18931, "fix-rel-path.patch":
fix-rel-path.patch