#1732 NORM Trial-2: datastore doesn't support binary values in the metadata
Zarro Boogs per Child
bugtracker at laptop.org
Thu Jun 28 12:05:15 EDT 2007
#1732: datastore doesn't support binary values in the metadata
------------------------+---------------------------------------------------
Reporter: tomeu | Owner: bcsaller
Type: defect | Status: reopened
Priority: normal | Milestone: Trial-2
Component: datastore | Version:
Resolution: | Keywords:
Verified: 0 |
------------------------+---------------------------------------------------
Changes (by tomeu):
* status: closed => reopened
* resolution: fixed =>
Comment:
If I send a dbus.ByteArray through dbus, I get back this:
{{{
dbus.String(u'dbus.Array([dbus.Byte(137), dbus.Byte(80), dbus.Byte(78),
dbus.Byte(71), dbus.Byte(13), dbus.Byte(10), dbus.Byte(26), dbus.Byte(10),
dbus.Byte(0), ...], signature=None)', variant_level=1)
}}}
So looks like what is being pickled is the string representation of the
dbus.ByteArray.
If I add the option byte_arrays=True to the method decorator of update()
and create() (so the DS side gets a BytesArray that is a descendant of
str), then I get errors later because the dbus.ByteArray is converted
internally to str:
{{{
TypeError: expected string without null bytes
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/1732#comment:2>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list