Basically it gets parsed into request.args. So
http://thadeusb.com/weblog/category/Web Development has a request.args of ['Web Development',] So I then take that name, query my category database to pull its 'id', and then use db.page.categories.like('|'+id+'|') since categories are a one-to-many foreign key relationship. My category class uses a modified pre-order tree traversal to handle hierarchies. -Thadeus On Thu, Dec 31, 2009 at 12:50 PM, Leandro - ProfessionalIT <[email protected]> wrote: > Hi Thadeus, > > How do you do to show the posts in determined category where you > have two or more words in the name of you category ? I'm looking in > your blog now and see this in : http://web2py.thadeusb.com/weblog/category/Web > Development > > Do you can show me the code of controller of categoy function ? You > capture the request.args and iterate on it ? > > In my case, I get a variable called category_name : > > http://www.leandro.inf.br/blog/category/?category_name='Software > Livre' > > -- Leandro. > > -- > > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/web2py?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

