Bug 257851

Summary: PyKDE4: KConfigSkeleton.ItemEnum doesn't accept a list with ItemEnum.Choice2 objects as its "choice" parameter
Product: [Developer tools] bindings Reporter: Dennis Malcorps <dennis.malcorps>
Component: pykdeAssignee: kde-bindings
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dennis Malcorps 2010-11-25 08:53:44 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

KConfigSkeleton.ItemEnum has two constructors. One accepts a list with ItemEnum.Choice objects, the other accepts a list with ItemEnum.Choice2 objects, but PyKDE4 only provides the former.

Reproducible: Always

Steps to Reproduce:
>>> values = []
>>> choice = kdeui.KConfigSkeleton.ItemEnum.Choice2()
>>> choice.name = 'test1'
>>> values.append(choice)
>>> choice = kdeui.KConfigSkeleton.ItemEnum.Choice2()
>>> choice.name = 'test2'
>>> values.append(choice)
>>> reference = int()
>>> item = kdeui.KConfigSkeleton.ItemEnum('group', 'key', reference, values)


Actual Results:  
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ItemEnum(): argument 4 has unexpected type 'list'


Expected Results:  
No TypeError...


python-qt4
version: 4.7.3-1+b1

python-kde4
version: 4:4.4.5-3
Comment 1 Andrew Crouthamel 2018-11-10 03:16:52 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-17 05:28:24 UTC
Hello, unfortunately this bug is being closed as unmaintained, per request of einar77.