[Widgets] Requirements LC

I accidentally sent this discussion to Timeless without including the list....


---------- Forwarded message ----------
From: Marcos Caceres <marcosscaceres@gmail.com>
Date: Thu, Jun 19, 2008 at 6:20 PM
Subject: Re: [Widgets] Requirements LC
To: timeless@gmail.com


On Thu, Jun 19, 2008 at 6:02 PM, timeless <timeless@gmail.com> wrote:
> On 6/18/08, Marcos Caceres <marcosscaceres@gmail.com> wrote:
>>  R35. Configuration Document Data
>>  A conforming specification SHOULD specify a means that allows authors
>>  to access any relevant data they declared in the configuration
>>  document for the widget resource.
>
> On 6/19/08, Marcos Caceres <marcosscaceres@gmail.com> wrote:
>> This just means that you should be able to get at the stuff in the
>>  config.xml file (so you don't need to declare the metadata again in
>>  the start file).
>
> oh, well that definitely isn't what i misinterpreted it to mean :)
>
> what is the reason not to require access to irrelevant information?

If it was irrelevant, it would not have been declared in the config. I
don't understand why you think it is irrelevant?

> i guess it's implementation simplicity...
>
>> How would you suggest I rewrite it?
>
> i think my concern is "they declared". I treated that is a "link" and
> read the block to mean that the host would "resolve the link" on
> retrieval.
>
> declare: foo=get_data_from(http://somewhere)
>
> means: retrieve(foo)
>
> result:
>  data from somewhere is loaded
>
> your goal:
>  "get_data_from(http://somewhere)"
>

Yes, that is possible (using XHR to load the config from within the
package), but then you have to walk an XML tree which sucks. The other
way is to use the properties that we have bound to the Widget object.
Check out http://dev.w3.org/2006/waf/widgets-api/Overview.src.html

--
Marcos Caceres
http://datadriven.com.au
http://standardssuck.org

Received on Friday, 20 June 2008 07:04:08 UTC