I was expecting someone tell me that I am using it wrong :)

Since it was there and I was using it (wrong or not) for past 2 years... I
was not expecting its behavior to change...

And I always consider testing my apps with trunk... bug I was focusing
tests on DAL... sometimes we don`t have much time...

but ok no problem I will change my code...

I just think it must be mention in the changelog that its behavior
changed... b/c others can have the same problem...


On Wed, Jan 21, 2015 at 6:05 PM, Niphlod <niph...@gmail.com> wrote:

> pretty undocumented feature (so its not a bug per se)....
>
> response.json() is clearly NOT meant to be used in views.... just use
> json(whatever) instead.
>
> on the "can I call it a bug of not" matter, that seems to surface every
> once in a while, please take the following as a word of caution (from the
> initial "heavy pusher" of Continous Integration in web2py)... the (hard ?)
> truth is that for a project the size of web2py, for all intents and
> purposes, as long as something is NOT included in the automated tests, you
> can't call a behavioural change as a bug (or a regression).
>
> If something changed and has been introduced in the core code it's because
> there WASN'T a test for it (or documentation about it in the book) at that
> time and someone proposed a valid usecase for it (that MAY NOT coincide
> with the usecase you're used to).
> In other words, given that:
> - the change seemed legit
> - nobody cared to add a test for it
> - there was no test case for it
> - it raised no alarms
>
> it went merged as a proper fix.
>
> Consider also that if you cared to test your app with trunk, you'd have
> noticed the issue starting from the 17-dec, and could have raised an issue
> before the stable release.
>
> Consider also that if you patch your controller with
>
> response.headers['Content-Type'] = 'text/html'
>
> before returning, also with the current stable version your issue will be
> resolved.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/l5CLfJ7cUHQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to