Fwd: Re: [html-formfu] ExtJS::REST
Mario Minati
mario.minati at googlemail.com
Tue May 12 01:19:53 GMT 2009
Am Montag 11 Mai 2009 11:34:01 schrieb Moritz Onken:
> Am 11.05.2009 um 01:24 schrieb Mario Minati:
> >> OK I see. I think we can make this the default behaviour. This will
> >> cause a
> >> database roundtrip but I think it's the best way to make sure that
> >> the
> >> data
> >> we give back is the same as the data the user will get when he
> >> requests
> >> that item.
> >
> > You are right, but FF itself doesn't take db changes into account by
> > default.
> > And the db processing for more complex forms with repeatables and so
> > one takes
> > quite some time.
> > I could accept to copy FF's default behaviour.
>
> Hi,
>
> I was trying to tell you that respond_with_model_values = 1 should be
> the default :-)
> and remove it altogether. I think that database round trip wouldn't
> hurt anyone.
Doing so the test suite fails in user.t line 50. We expect PUT to return
success == '1', but it sends 'true'. That is because we set it once as '\1'
and the other time as '1' in ExtJS.
Do you know if ExtJS makes a difference between those two values?
I introspected some more and am thinking, that ExtJS would do fine if change
FF::ExtJS to return \0 and \1 all the time.
I prepared the necessary changes for tests and code.
Shall I apply them?
Greets,
Mario Minati
More information about the HTML-FormFu
mailing list