Re: Service Clients API

2008-06-27 Thread Daniel Chokola
Sébastien Cevey wrote: Today I realized my error, but thought, why don't I just do the same for arguments? [...] * automatic vararg support OTOH we already have optional arguments. At the expense of some extra lines of service client code and extra information to the arg_type_add call.

Re: Service Clients API

2008-06-27 Thread Sébastien Cevey
At Fri, 27 Jun 2008 13:33:14 -0400, Daniel Chokola wrote: > While making it, I forgot that service clients allow multiple return > values, so I assumed there was only one return value like in C > functions, and made a return value an implicit value_t. IIRC it was the case because at that time, we

Service Clients API

2008-06-27 Thread Daniel Chokola
Hello folks, I've got a draft specification of the service clients API that I banged out in Ruby yesterday. [1][2] While making it, I forgot that service clients allow multiple return values, so I assumed there was only one return value like in C functions, and made a return value an implicit

Re: Propdicts and Source Preference

2008-06-27 Thread Daniel Chokola
Anders Waldenborg wrote: (btw, I like saying SP, because then we can change the name to Source Policy without anyone noticing) I like that, too. ;) My plan is as follows: 1) Move sourcepref to serverside and make mediainfo_get return plain dict 2) Nothing uses propdict anymore, remove it.

Re: Propdicts and Source Preference

2008-06-27 Thread Sebastien Cevey
Selon Sebastien Cevey <[EMAIL PROTECTED]>: > I suggest that until SP is done server-side, mediainfo_get already returns a > dict-in-dict instead of the current propdict. > > (or alternatively, mediainfo_getfull and mediainfo_get returns some dict > approximation of the SP-filtered propdict.) cla

Re: Propdicts and Source Preference

2008-06-27 Thread Sebastien Cevey
Selon Anders Waldenborg <[EMAIL PROTECTED]>: I agree with everything Anders said, just a note: > My plan is as follows: > > 1) Move sourcepref to serverside and make mediainfo_get return plain dict That's a job for nesciens' coll2.0 project, actually. And I don't think we need to wait for that

Re: Propdicts and Source Preference

2008-06-27 Thread Anders Waldenborg
Daniel Chokola wrote: Hello list! So, I was involved in a discussion with theefer and anders_ on IRC the other day about propdicts and source preference. Two issues arose and I didn't really understand the consensus on either of them. So I'll ask again on the mailing list so perhaps someone h

Propdicts and Source Preference

2008-06-27 Thread Daniel Chokola
Hello list! So, I was involved in a discussion with theefer and anders_ on IRC the other day about propdicts and source preference. Two issues arose and I didn't really understand the consensus on either of them. So I'll ask again on the mailing list so perhaps someone has the time to write a

Re: RFC: result/value-split - list/dict/propdict iterators

2008-06-27 Thread Sébastien Cevey
At Fri, 27 Jun 2008 02:34:22 -0400, Daniel Chokola wrote: > But supposedly dicts and propdicts merge if we move source preference to > the client side. *server* side. > I really wish someone would show me an example, because I'm not > understanding how this works. :( medialib_set_source_pref