You might also consider putting these parameters in a query string rather than the URL path. That way, you could simply exclude parameters that are not being used for a given query (in web2py, missing query string variables will simply have the value None -- for example, if you attempt to access request.vars.amount_range_id but it was not included in the requested URL, it will have the value None).
Anthony On Sunday, August 28, 2016 at 8:41:16 PM UTC-4, Diego Marinho wrote: > > I have this pattern: > > > "/jobs/year-start/{jobs.year_start.year}/amount-range-id/{jobs.amount_range_id}/neighbourhood-id/{jobs.neighbourhood_id}" > > I have tree fields that im using to filter the 'jobs' table. How can i > make those filters optional? > > Let's say i want to use only two of the tree possible filters. What can i > send instead of the id to say that i want all data concerning that field? > -- 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.