On Monday, March 23, 2015 at 7:26:44 PM UTC-4, Ron Chatterjee wrote:
>
> There are various ways to do it. I will put a breakpoint and start typing 
> on the shell to figure out what you want to print. One way I can think of, 
>
> db().select(db.user_posts.ALL,orderby=auth.user.id, limitby=(0, 
> whatever_number_of_post_you_want_to_display);
>

He wants to display posts by a particular author, so simply limiting the 
number or records returned won't help. Instead, the query must specify the 
author.

Anthony

-- 
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