Bug 148949

Summary: Problem 'volume' function in JuK DCOP interface over python
Product: [Developer tools] bindings Reporter: Garami Gabor <hrgy>
Component: generalAssignee: kde-bindings
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: andresbajotierra
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Garami Gabor 2007-08-18 01:24:16 UTC
Version:           2.3.4 (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages
Compiler:          gcc 4.1.2 gcc (GCC) 4.1.2 20070214 (  (gdc 0.23, using dmd 1.007)) (Gentoo 4.1.2 p1.0.1)
OS:                Linux

In the JuK mediaplayer DCOP interface, the 'float volume()' call with python is
not returns any value or any exception. But, over shell script its give a
correct value.

The used code:

import pydcop

volume = DCOPMethod('juk', 'Player', 'volume')
print "Volume : " + str(volume())

Result:
Volume : None

But in shell:

hron@merlin ~/Projects/pyjuk $ dcop juk Player volume
0.409600
hron@merlin ~/Projects/pyjuk $

This bug reported in Gentoo Bugzilla #186611 bug. (http://bugs.gentoo.org/show_bug.cgi?id=186611)
Comment 1 Garami Gabor 2007-08-18 01:27:58 UTC
The first line of example code has an typo:

from pydcop import DCOPMethod

is a correct line. But, with this change, the bug is still reproduceable.
Comment 2 Scott Wheeler 2007-08-20 18:51:51 UTC
If this works on the command line then it's a bug in the Python bindings, not in JuK.  Reassigning.
Comment 3 Dario Andres 2010-01-20 21:20:15 UTC
Closing as DCOP is unmaintained.