On 06/19/2014 07:38 AM, Sheldon wrote:
sure. kimchisession hook is heavy overhead.
the root.get just return the kimchi-ui.html, actually it is not a
restful API.
Consider root.get is the only entry of UI.
How about move the logic code to root.get.
ACK
On 06/19/2014 01:53 AM, CrÃstian Viana wrote:
> The subdirectories "css", "js", "libs" and
"images" currently require
> a login session to be accessed. Those files are simple resources, thus
> they don't need to be protected.
> One consequence of this behavior is that it is not possible to create
> a remote
> template with the current security settings.
>
> Remove the login session requirement to access the subdirectories "css",
> "js", "libs" and "images".
>
> Signed-off-by: Aline Manera <alinefm(a)br.ibm.com>
> Signed-off-by: CrÃstian Viana <vianac(a)linux.vnet.ibm.com>
> ---
> src/kimchi/config.py.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
> index 74c8fa5..4be767e 100644
> --- a/src/kimchi/config.py.in
> +++ b/src/kimchi/config.py.in
> @@ -154,6 +154,7 @@ class UIConfig(dict):
> ui_configs['/' + sub_dir] = {
> 'tools.staticdir.on': True,
> 'tools.staticdir.dir': os.path.join(paths.ui_dir,
> sub_dir),
> + 'tools.kimchisession.on': False,
> 'tools.nocache.on': False}
> if sub_dir != 'images':
> ui_configs['/' + sub_dir].update({