Xavier Morel
01a414fb7c
[ADD] initial route introspection + fix pair of routes/controllers
...
* most controllers turn out to be complete cork and thus can't be
reversed
* fixup a pair of simple controllers
TODO:
* fixup more controllers
* how can labels/page names be produced?
* grouping/categories of links?
At a high level, workings are pretty simple:
* iterate on all rules (every url pattern produces a werkzeug rule)
* check if the url can make sense as a link: GET, http, no auth or
public auth, coming from the CMS (no web client links) and all
converters can generate values for themselves (e.g. a url with an
`int` converter can't be generated as there is no finite set of
integers, let alone one small enough to make sense to show to users)
* check if the controller function bound to the URL can use the URLs
we can generate (no **kwargs as that means arbitrary get|post
parameter, no query param without a default value (a query param is
a parameter which does not come from a URL/rule converter))
* use rule converter(s) to generate a matrix of values, and build urls
from these
bzr revid: xmo@openerp.com-20131108132615-2n7t1vj8hz9v9eis
2013-11-08 14:26:15 +01:00
..
2013-10-28 17:33:21 +01:00
2013-11-04 06:02:49 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-30 05:54:38 +00:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-04 06:02:49 +00:00
2013-11-04 06:02:49 +00:00
2013-11-14 06:30:58 +00:00
2013-10-30 05:54:38 +00:00
2013-11-14 12:18:02 +01:00
2013-10-30 05:54:38 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-04 06:02:49 +00:00
2013-11-14 06:30:58 +00:00
2013-10-11 04:49:29 +00:00
2013-10-22 19:06:59 +02:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-27 05:50:02 +00:00
2013-10-08 16:57:30 +02:00
2013-10-30 05:54:38 +00:00
2013-10-27 18:48:13 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-27 18:31:43 +01:00
2013-10-27 05:50:02 +00:00
2013-10-27 05:50:02 +00:00
2013-11-14 10:57:21 +01:00
2013-10-27 05:50:02 +00:00
2013-10-27 05:50:02 +00:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-10-27 05:50:02 +00:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-04 16:52:30 +01:00
2013-11-14 06:30:58 +00:00
2013-11-04 16:52:30 +01:00
2013-11-05 06:00:56 +00:00
2013-10-16 18:39:08 +02:00
2013-10-17 16:25:45 +02:00
2013-10-17 16:34:09 +02:00
2013-10-28 17:33:21 +01:00
2013-10-03 16:32:34 +02:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-05 13:26:34 +01:00
2013-11-14 06:30:58 +00:00
2013-10-14 05:33:13 +00:00
2013-11-14 06:30:58 +00:00
2013-10-22 19:10:10 +02:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-22 19:06:59 +02:00
2013-11-14 06:30:58 +00:00
2013-10-28 15:05:45 +01:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-30 05:54:38 +00:00
2013-10-14 05:33:13 +00:00
2013-11-05 14:35:20 +01:00
2013-11-14 06:30:58 +00:00
2013-10-28 17:33:21 +01:00
2013-10-28 17:33:21 +01:00
2013-11-14 10:59:07 +01:00
2013-10-21 04:57:23 +00:00
2013-10-08 13:35:45 +02:00
2013-10-28 17:33:21 +01:00
2013-10-08 13:35:45 +02:00
2013-10-08 13:35:45 +02:00
2013-10-08 13:35:45 +02:00
2013-10-30 05:54:38 +00:00
2013-10-08 13:35:45 +02:00
2013-11-14 06:30:58 +00:00
2013-10-27 05:50:02 +00:00
2013-10-28 17:33:21 +01:00
2013-10-30 05:54:38 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-31 05:47:53 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-21 04:57:23 +00:00
2013-10-27 05:50:02 +00:00
2013-10-30 05:54:38 +00:00
2013-11-14 06:30:58 +00:00
2013-10-28 17:33:21 +01:00
2013-11-14 06:30:58 +00:00
2013-10-28 05:23:39 +00:00
2013-10-28 05:23:39 +00:00
2013-10-02 05:37:24 +00:00
2013-11-14 06:30:58 +00:00
2013-10-28 05:23:39 +00:00
2013-10-28 17:33:21 +01:00
2013-11-04 06:02:49 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-28 05:23:39 +00:00
2013-10-28 05:23:39 +00:00
2013-10-28 05:23:39 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-11-14 06:30:58 +00:00
2013-10-27 18:17:17 +01:00
2013-10-27 05:50:02 +00:00
2013-10-27 18:17:17 +01:00
2013-10-27 05:50:02 +00:00
2013-10-27 05:50:02 +00:00
2013-10-27 05:50:02 +00:00
2013-10-27 18:31:43 +01:00
2013-10-27 05:50:02 +00:00
2013-11-08 22:42:55 +01:00
2013-10-27 05:50:02 +00:00
2013-11-08 14:26:15 +01:00
2013-11-07 14:19:49 +01:00
2013-11-05 16:14:04 +01:00
2013-11-07 13:54:34 +01:00
2013-11-07 13:54:34 +01:00
2013-10-08 17:22:33 +02:00
2013-11-07 14:19:49 +01:00
2013-10-07 16:42:23 +02:00
2013-11-05 17:06:17 +01:00
2013-11-08 14:26:15 +01:00
2013-10-30 16:09:58 +01:00
2013-11-07 13:54:34 +01:00
2013-10-08 17:22:33 +02:00
2013-11-07 16:14:00 +01:00
2013-11-07 17:45:22 +01:00