After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685947 - Gio.Settings: NotImplementedError: Cannot handle allowed type range classenum
Gio.Settings: NotImplementedError: Cannot handle allowed type range classenum
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: martin.pitt
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-11 10:10 UTC by Martin Pitt
Modified: 2012-10-11 15:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Pitt 2012-10-11 10:10:52 UTC
In a test suite of mine I am trying to set

settings_gsd_power = Gio.Settings('org.gnome.settings-daemon.plugins.power')
settings_gsd_power['sleep-inactive-battery-type'] = 'suspend'

but that fails with

  • File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 105 in __setitem__
    raise NotImplementedError('Cannot handle allowed type range class' + str(type_))
NotImplementedError: Cannot handle allowed type range classenum

It would be useful to support this datatype.