I think i get components now. Each .load function should be linked to a unique database table inorder to see different posts for different sections. Hopefully that is not the longer solution :)
It works superb now. Thanks really for all the help. On Tuesday, 24 February 2015 19:08:12 UTC+2, 黄祥 wrote: > > The LOad components is really helpful. However i seem to be loading the >> same form in all my sections. >> > > yes you are right. taken from book it said (components) : > build modular applications that minimize server load and maximize code > reuse > > >> Can you perhaps help me out if you have tried this before. I can see that >> the database does not even assign the comments to a certain form. >> How can i ensure each comment is associated with a form. >> > > i think the form is for input the table comment_post > def post(): > return dict(*form=SQLFORM(db.comment_post).process()*, > comments=db(db.comment_post).select()) > -- 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.