On Friday, April 21, 2017 at 3:12:00 PM UTC-4, David Shavers wrote:
>
> /room-owner/cost-per-night/{room_owner.cost_per_night.ge}/{
> room_owner.cost_per_night.lt}
> /room-owner/cost-per-night/{room_owner.cost_per_night.ge}/{
> room_owner.cost_per_night.lt}/:field
>
Notice the pattern for cost-per-night (which presumably is a float or
decimal field) includes placeholders for the lower and upper bounds of a
range -- so the url must be something like
/room-owner/cost-per-night/25/30.json.
If you want to specify an exact cost and test for equality, you can create
your own pattern instead of using the auto-generated patterns:
/room-owner/cost-per-night/{room_owner.cost_per_night.eq}
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.