Il 06/08/15 08:11, Massimo Di Pierro ha scritto:
> Let's bring this up on web2py developers. I will support it. Can you
> submit a patch to pydal?
Hi Massimo!
Thanks for your replay... I'm glad to contribute... Here you can find my
pull request in order it can be properly discussed

https://github.com/web2py/pydal/pull/264

I've modified a little bit the code from the previous patch in order to
support getting values from nested object with the same function.

first problem:
It seams my pull request did not pass one check...
https://codecov.io/github/web2py/pydal/commit/009bf14b12079738b81a7a9bd8f970792c4fad09
I don't understand what does it mean... can somebody help me to better
adjust my code in order to pass the check?

second problem:
as @Niphold suggested me it would be necessary some test... can somebody
point me to some test example of similar mehods?

Thanks a lot

    Manuele


>
> On Wednesday, 5 August 2015 17:15:54 UTC-5, Manuele wrote:
>
>     Hi!
>     I have a table with a json field and I woul like to perform
>     something like:
>
>     db(db.mytable.id
>     
> <http://db.mytable.id>>0).select(db.mytable.myjsonfield.getitem('myfield').with_alias("myfield"))
>
>
>     the only way I thought is the patch in attachment that works just
>     fine
>     but I don't like to use a patched version of the framework.
>     Is these a way to monkeypath the two classes PostgreSQLAdapter and
>     Expression (I guess before the db definition) in my application?
>
>     On the other hand... do you think it could be a usefull
>     implementation
>     for web2py itself?
>
>     Thanks a lot
>
>         Manuele
>
> -- 
> 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 [email protected]
> <mailto:[email protected]>.
> 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to