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 634002 - Python Console plugin gconf error
Python Console plugin gconf error
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-04 15:57 UTC by Jordan Mantha
Modified: 2019-03-23 20:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
python console config patch (862 bytes, patch)
2010-11-04 15:57 UTC, Jordan Mantha
none Details | Review

Description Jordan Mantha 2010-11-04 15:57:21 UTC
Created attachment 173828 [details] [review]
python console config patch

On Ubuntu 10.10 (gedit 2.30.4), when configuring the Python Console plugin, color changes give a python NameError:

Traceback (most recent call last):
  • File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 129 in on_colorbutton_command_color_set
    self.config.color_command = colorbutton.get_color().to_string()
  • File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 59 in <lambda>
    lambda self, value: self.gconf_set_str(GCONF_KEY_COMMAND_COLOR, value))
  • File "/usr/lib/gedit-2/plugins/pythonconsole/config.py", line 81 in gconf_set_str
    v = PythonConsoleConfig.gconf.Value(gconf.VALUE_STRING)
NameError: global name 'gconf' is not defined

This can be fixed by including the prefix PythonConsoleConfig. to two of the gconf references in /usr/lib/gedit-2/plugins/pythonconsole/config.py . Jason Conti provided a fix at the Launchpad bug (https://bugs.launchpad.net/bugs/654867) and I'm attaching the patch here.
Comment 1 Ignacio Casal Quinteiro (nacho) 2010-12-29 18:58:27 UTC
Python Console doesn't use gconf anymore so I'm closing this as obsolete.