You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
James Cameron c911c6cb30 Port to Python 3 - preview metadata is bytes
Preview metadata in 0.114 and earlier was returned by datastore client
as a dbus.ByteArray.

Regression introduced by aa8a5e7 ("Port from Python 2 to six").

Traceback (most recent call last):
  File "/usr/lib/python3.7/dist-packages/jarabe/journal/expandedentry.py", line 378, in _create_preview
    pixbuf = get_preview_pixbuf(metadata.get('preview', ''))
  File "/usr/lib/python3.7/dist-packages/sugar3/graphics/objectchooser.py", line 85, in get_preview_pixbuf
    preview_data = base64.b64decode(preview_data)
  File "/usr/lib/python3.7/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
binascii.Error: Invalid base64-encoded string: number of data characters (237) cannot be 1 more than a multiple of 4

Related to
https://github.com/sugarlabs/sugar-datastore/issues/16
5 years ago
..
Makefile.am Port from Python 2 to six 5 years ago
__init__.py Rename the module to sugar3 13 years ago
alert.py flake8 fixes 5 years ago
animator.py Port from GObject to GLib 6 years ago
colorbutton.py Dash in signal names 5 years ago
combobox.py Port from GObject to GLib 6 years ago
icon.py flake8 fixes 5 years ago
iconentry.py Dash in signal names 5 years ago
menuitem.py Port from GObject to GLib 6 years ago
notebook.py flake8 fixes 5 years ago
objectchooser.py Port to Python 3 - preview metadata is bytes 5 years ago
palette.py Port from GObject to GLib 6 years ago
palettegroup.py Port from Python 2 to six 5 years ago
palettemenu.py Port from Python 2 to six 5 years ago
palettewindow.py flake8 fixes 5 years ago
panel.py Trivial GTK3 porting fixes 13 years ago
progressicon.py Port from Python 2 to six 5 years ago
radiopalette.py DescriptionButton, ShareButton: set the toggle_palette option to True 12 years ago
radiotoolbutton.py Port from GObject to GLib 6 years ago
scrollingdetector.py flake8 fixes 5 years ago
style.py Port from Python 2 to six 5 years ago
toggletoolbutton.py Port from GObject to GLib 6 years ago
toolbarbox.py Port from Python 2 to six 5 years ago
toolbox.py flake8 fixes 5 years ago
toolbutton.py Port from Python 2 to six 5 years ago
toolcombobox.py Port from GObject to GLib 6 years ago
tray.py Dash in signal names 5 years ago
window.py Port from GObject to GLib 6 years ago
xocolor.py flake8 fixes 5 years ago