Bug 259458 - PyKDE4: Every KCoreConfigSkeletonItem that represents a primitive / immutable type returns garbage
Summary: PyKDE4: Every KCoreConfigSkeletonItem that represents a primitive / immutable...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: bindings
Classification: Developer tools
Component: pykde (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kde-bindings
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 18:29 UTC by Dennis Malcorps
Modified: 2018-11-17 05:30 UTC (History)
1 user (show)

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-12-10 18:29:26 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

There are two ways to add a new item to a KConfigSkeleton object.
1) create the item with one of KConfigSkeleton.ItemFoo constructors and call KConfigSkeleton.addItem(...)
2) using the convenience functions KConfigSkeleton.addItemFoo(...)

For primitive / immutable types (bool, int, uint, longlong, ulonglong, double, enum) only the second method works as expected. The first one returns random garbage. And as a bonus, if you try to load a value already stored in a config file using method 1, python segfaults...


Reproducible: Always

Steps to Reproduce:
>>> from PyKDE4 import kdecore
>>> reference = int()
>>> item = kdecore.KCoreConfigSkeleton.ItemInt('group', 'key', reference, 1234)
>>> item.value()


Actual Results:  
-1216966668


Expected Results:  
1234


python-qt4
version: 4.8-2.9

python-kde4
version: 4.5.4-18.4
Comment 1 Wolfgang Rohdewald 2013-11-03 07:32:31 UTC
might be a duplicate of bug 253123 (which is still open too)
Comment 2 Andrew Crouthamel 2018-11-10 03:18:05 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 3 Andrew Crouthamel 2018-11-17 05:30:06 UTC
Hello, unfortunately this bug is being closed as unmaintained, per request of einar77.