[web2py] Re: NameError: name 'category' is not defined (reddit clone application)

2016-08-22 Thread pbreit
The paging includes references to "category" except when viewing posts by author, there is no category. A quick fix would be to skip the paging when listing by author: {{if request.function!='list_posts_by_author':}} {{if page>0:}} {{=A('previous', _class='btn', _href=URL(args=(category.name, pa

[web2py] Re: NameError: name 'category' is not defined (reddit clone application)

2016-08-22 Thread Dave S
On Monday, August 22, 2016 at 6:58:08 AM UTC-7, Annexx Xaar wrote: > > Hello sir i have tried all i could, still having errors in the reddit > clone application. > everything works fine except when i > implemented {{=author(user_id)}} under list_posts_by_votes.html > the errors blows when i cl

[web2py] Re: NameError: name 'category' is not defined (reddit clone application)

2016-08-22 Thread Marlysson Silva
It's possible show the result of get_category function ? Or show errors in these point ? Em segunda-feira, 22 de agosto de 2016 11:12:44 UTC-3, Annexx Xaar escreveu: > > Pls I am waiting for reply. pls anyone help? > > > > > > > > On Monday, August 22, 2016 at 2:58:08 PM UTC+1, Annexx Xaar wrote:

[web2py] Re: NameError: name 'category' is not defined (reddit clone application)

2016-08-22 Thread Annexx Xaar
Pls I am waiting for reply. pls anyone help? On Monday, August 22, 2016 at 2:58:08 PM UTC+1, Annexx Xaar wrote: > > Hello sir i have tried all i could, still having errors in the reddit > clone application. > everything works fine except when i > implemented {{=author(user_id)}} under lis