Jeremy Kersten
1b52b00d2a
[IMP] website*: clean sitemap + add method to declare sitemap function.
...
Don't add useless routes or route that will return 404.
Improve generate function from ModelConverter to have a better management of
query_string.
Now we have an helper sitemap_qs2dom that will analyse the current route and
check if query string is plausible and if yes, generate a domain, when the
query_string don't seems to match the route, we return a Falsy domain.
Before this commit, if qs was /product/ipad, enumerate_page check for each
modelconverter of the route a name ilike '/product/ipad'.
Now we check all routes that contains product and one converter that match ipad
or routes that contains ipad and one converter that match product.
This commit a new way to declare the sitemap for a route.
def sitemap_xx(env, rule, query_string):
yield {'loc': '/my_url'}
@http.route(..., sitemap=sitemap_xx)
In this case, only the loc returned by this function will be in the sitemap
for all rules.
You can pass sitempa=False, if you don't want that route are into the sitemap
2017-09-27 21:33:49 +02:00
..
2017-09-27 15:30:50 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 15:23:12 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 21:33:49 +02:00
2017-09-27 09:21:17 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 16:08:14 +02:00
2017-09-21 15:41:06 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 14:38:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 13:54:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 14:54:29 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 09:37:16 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 17:32:24 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-22 13:34:43 +02:00
2017-08-20 23:25:54 +02:00
2017-08-23 16:44:58 +02:00
2017-09-25 14:05:27 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-31 12:55:41 +02:00
2017-08-08 12:02:27 +02:00
2017-09-01 13:03:18 +02:00
2017-09-03 00:30:50 +02:00
2017-08-14 10:20:37 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-09-05 15:02:30 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 09:53:23 +02:00
2017-08-28 09:53:23 +02:00
2017-09-26 11:11:54 -07:00
2017-08-28 11:24:24 +02:00
2017-09-12 17:52:47 +02:00
2017-09-12 17:52:47 +02:00
2017-09-12 17:52:47 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-09-15 14:04:41 +02:00
2017-08-28 11:24:24 +02:00
2017-09-01 13:03:18 +02:00
2017-09-06 17:40:59 +02:00
2017-08-24 13:17:53 +02:00
2017-09-04 16:52:30 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-09-18 22:17:43 +02:00
2017-09-20 13:30:56 +02:00
2017-09-18 22:17:43 +02:00
2017-09-18 22:17:43 +02:00
2017-09-18 22:17:43 +02:00
2017-09-18 22:17:43 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-31 12:55:41 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 14:02:35 +02:00
2017-09-27 10:24:54 +02:00
2017-09-06 16:38:32 +02:00
2017-08-31 12:55:41 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-31 12:55:41 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-14 10:20:37 +02:00
2017-08-31 12:55:41 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-31 12:55:41 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-25 09:49:00 +02:00
2017-08-28 11:24:24 +02:00
2017-08-28 11:24:24 +02:00
2017-08-31 12:55:41 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 16:58:19 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 18:10:20 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 21:36:10 -07:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 13:21:35 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 13:02:24 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-26 12:59:25 +02:00
2017-09-27 14:26:50 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 17:32:59 +02:00
2017-09-25 14:05:27 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 13:21:44 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 14:33:33 +02:00
2017-09-25 14:05:27 +02:00
2017-09-25 14:05:27 +02:00
2017-09-27 17:32:59 +02:00
2017-09-20 16:57:50 +02:00
2017-09-27 18:10:20 +02:00
2017-09-25 19:29:14 -07:00
2017-09-20 16:14:08 +02:00
2017-09-25 15:34:56 +02:00
2017-09-26 09:31:26 +02:00
2017-09-25 10:58:04 +02:00
2017-09-20 16:14:08 +02:00
2017-08-14 10:20:37 +02:00
2017-08-14 10:20:37 +02:00
2017-09-27 17:23:31 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 21:33:49 +02:00
2017-09-26 16:10:20 +02:00
2017-09-26 16:08:14 +02:00
2017-09-27 21:33:49 +02:00
2017-09-27 21:33:49 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-08-07 11:24:55 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-08-20 00:31:52 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-09-26 16:08:14 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 21:33:49 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 17:32:59 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-27 13:21:53 +02:00
2017-09-20 17:44:19 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-09-20 16:14:08 +02:00
2017-08-04 14:57:25 +02:00
2017-09-21 10:11:15 +02:00
2017-09-27 21:33:49 +02:00
2017-09-18 16:25:45 +02:00
2017-09-20 16:14:08 +02:00