Bug 257851 - PyKDE4: KConfigSkeleton.ItemEnum doesn't accept a list with ItemEnum.Choice2 objects as its "choice" parameter
Summary: PyKDE4: KConfigSkeleton.ItemEnum doesn't accept a list with ItemEnum.Choice2 ...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: bindings
Classification: Developer tools
Component: pykde (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-25 08:53 UTC by Dennis Malcorps
Modified: 2018-11-17 05:28 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.