launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #01654
Re: Redesigning lazr.restful support for AJAX
On November 17, 2009, Barry Warsaw wrote:
> On Nov 16, 2009, at 5:06 PM, Francis J. Lacoste wrote:
> > Accept: application/x-page-fragments;views="subscribers=+subscriber-
> > portlets,
> > count=+subscribers-count"
> >
> > That should return a JSON dictionary containing two keys: subscribers
> > containing the result of the +subscriber-porlets view and count
> > containing the
> > result of the +subscribers-count view.
> >
> > That removes the wiring that has to be done now server side to map
> > these
> > existing views to the HTML representation of fields, removes the
> > problematic
> > limitation of having only HTML representation and allows us to
> > retrieve
> > efficiently all the fragments we need on the page.
>
> This makes a lot of sense, and I think it would have helped some of
> the branches we were working on. How would you notate this and
> implement this on the server side?
>
The beauty of this is that you don't have to notate (wire) anything server-
side. You just have to add the view dispatching to the web service as well as
the marshalling of the results.
--
Francis J. Lacoste
francis.lacoste@xxxxxxxxxxxxx
Attachment:
signature.asc
Description: This is a digitally signed message part.
References