Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-31 Thread Tomeu Vizoso
On Wed, Oct 29, 2008 at 5:30 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 29.10.2008, at 03:42, Marco Pesenti Gritti wrote: On Wed, Oct 29, 2008 at 9:45 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote: We could easily hack the DS in 0.83 to return D-Bus strings for standard properties that are

Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-31 Thread Benjamin M. Schwartz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tomeu Vizoso wrote: And see xattrs for a design that avoids this mess. xattr values are also just bytes with no type, and so will have exactly the same problem. Their behavior would be equivalent to D-Bus's a{ayay}. Python's behavior in this

Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-31 Thread Tomeu Vizoso
On Fri, Oct 31, 2008 at 2:44 PM, Benjamin M. Schwartz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tomeu Vizoso wrote: And see xattrs for a design that avoids this mess. xattr values are also just bytes with no type, and so will have exactly the same problem.

[sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-29 Thread Bert Freudenberg
On 29.10.2008, at 03:42, Marco Pesenti Gritti wrote: On Wed, Oct 29, 2008 at 9:45 AM, Tomeu Vizoso [EMAIL PROTECTED] wrote: We could easily hack the DS in 0.83 to return D-Bus strings for standard properties that are known (or rather, expected) to contain textual data, but introducing

Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-29 Thread Marco Pesenti Gritti
On Wed, Oct 29, 2008 at 5:30 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 29.10.2008, at 03:42, Marco Pesenti Gritti wrote: I don't see how it would be inconsistent that when an activity saves a title meta-data property which obviously is a string, and it resumes, to expect it will be

Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-29 Thread Bert Freudenberg
On 29.10.2008, at 09:57, Marco Pesenti Gritti wrote: On Wed, Oct 29, 2008 at 5:30 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: On 29.10.2008, at 03:42, Marco Pesenti Gritti wrote: I don't see how it would be inconsistent that when an activity saves a title meta-data property which

Re: [sugar] Proper D-Bus usage (was Re: October 29 - Tarballs due for 0.83.1)

2008-10-29 Thread Marco Pesenti Gritti
On Wed, Oct 29, 2008 at 6:32 PM, Bert Freudenberg [EMAIL PROTECTED] wrote: It's not a data blob. It *is* a blob in Tomeu design, which I'll let him defend. Yeah but the interface was written for a datastore which had a notion of metadata property type (although a very bad one). The new one