diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-11-08 14:26:15 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-11-08 14:26:15 +0100 |
| commit | 01a414fb7cebedb67e0ce203af67ba7eca455697 (patch) | |
| tree | c652aabe0ccd892dfb3f8804eaac8c4cfafd64cc /addons/website/static/lib/ckeditor/plugins/bbcode/dev | |
| parent | 1e9df02682d84a4d9e012c18c4abdcf083b92a08 (diff) | |
[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
Diffstat (limited to 'addons/website/static/lib/ckeditor/plugins/bbcode/dev')
0 files changed, 0 insertions, 0 deletions
