On 03.03.2015 16:04, Frédéric wrote:
> Le 03/03/2015, Daniel a écrit :
> 
>> I'm not really a REST expert, but isn't that something you'd configure
>> in your resource description? Something like
>>
>> var description = {
>>   "put": { method: "PUT", url: "/eib/new/{ts}"},
>> };
>>
>> resource.put({ts: something}, data);
> 
> Yes, but it is not possible when using long poll; this method only takes
> the resource action, but no parameters.

I see. Looking at the implementation, it should be fairly easy to
support parameters in the longPoll method. It uses a single invoke()
call which would take the parameters and then repeated calls to
refresh() which uses the parameters from the original invocation. Feel
free to open an enhancement report for this.

> 
> I simulated the long poll by resending the action with its params from the
> 'success' callback. Don't know if it is very clean, but it seems to work.
> 

That's basically what longPoll does so it should be fine.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to