GNOME Bugzilla – Bug 784307
Cannot handle allowed type range class range
Last modified: 2018-04-17 11:08:33 UTC
The __setitem__ binding for gsettings objects apparently doesn't support setting any keys which have range restrictions. This dramatically reduces their usefulness in a lot of situations. An example I just personally ran into: >>> Gio.Settings.new('org.gnome.system.proxy.http')['port'] = 8080 Traceback (most recent call last):
+ Trace 237598
raise NotImplementedError('Cannot handle allowed type range class ' + str(type_))
Poking around a bit, I discovered that Bug 746724 (which is not specifically for this issue but is related) has an offered patch which I believe would solve this problem, if it were merged in, but that ticket appears to have been in the "New" state for over two years now with nobody even looking at it..?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/134.
Fixed in master: https://gitlab.gnome.org/GNOME/pygobject/commit/ca20535e993