[rhinstaller/anaconda/pulls/203 master] Decode wifi SSIDs into strings. (#1240398)

dashea installerbot-noreply at redhat.com
Mon Jul 13 20:10:09 UTC 2015


> Ok, this is because type_name_mangle("GBytes") -> gbytes_get_type. This is clearly a GTK+ bug but in the meantime you could work around it by doing:

$ cat test.py 
```
#!/usr/bin/python3

import gi
gi.require_version('Gtk', '3.0')

from gi.repository import Gtk, GLib

GLib.Bytes

builder = Gtk.Builder.new_from_file('test.glade')
store = builder.get_object('test_store')

store.append(['asdf', b'asdf'])

window = builder.get_object('test_window')
window.connect('delete-event', Gtk.main_quit)
window.show_all()
Gtk.main()
```

$ python3 test.py 
Traceback (most recent call last):
  File "test.py", line 13, in <module>
    store.append(['asdf', b'asdf'])
  File "/usr/lib64/python3.4/site-packages/gi/overrides/Gtk.py", line 956, in append
    return self._do_insert(-1, row)
  File "/usr/lib64/python3.4/site-packages/gi/overrides/Gtk.py", line 947, in _do_insert
    row, columns = self._convert_row(row)
  File "/usr/lib64/python3.4/site-packages/gi/overrides/Gtk.py", line 857, in _convert_row
    result.append(self._convert_value(cur_col, value))
  File "/usr/lib64/python3.4/site-packages/gi/overrides/Gtk.py", line 875, in _convert_value
    return GObject.Value(self.get_column_type(column), value)
  File "/usr/lib64/python3.4/site-packages/gi/overrides/GObject.py", line 218, in __init__
    self.set_value(py_value)
  File "/usr/lib64/python3.4/site-packages/gi/overrides/GObject.py", line 283, in set_value
    self.set_boxed(py_value)
  File "/usr/lib64/python3.4/site-packages/gi/overrides/GObject.py", line 231, in set_boxed
    _gobject._gvalue_set(self, boxed)
TypeError: Expected Boxed

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/203


More information about the anaconda-patches mailing list