[Kimchi-devel] [PATCH] bug fix: display kimchi icon instead of cherrypy icon

Hongliang Wang hlwang at linux.vnet.ibm.com
Fri Feb 14 06:33:42 UTC 2014


On 02/13/2014 09:53 PM, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> When we start a VNC window, the favicon.ico is always cherrypy icon.
>
> Actually we open any page:
> such as:
> http://192.168.1.117:8000/error
>
> the favicon.ico is also a cherrypy icon.
>
> This patch fix this bug.
>
> Ref:
> http://docs.cherrypy.org/en/latest/progguide/files/favicon.html
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
Reviewed-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
> ---
>   src/kimchi/server.py | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/src/kimchi/server.py b/src/kimchi/server.py
> index 1e131b4..0396660 100644
> --- a/src/kimchi/server.py
> +++ b/src/kimchi/server.py
> @@ -118,6 +118,10 @@ class Server(object):
>               'tools.staticfile.on': True,
>               'tools.staticfile.filename': 'config/ui/tabs.xml',
>               'tools.nocache.on': True
> +        },
> +        '/favicon.ico': {
> +            'tools.staticfile.on': True,
> +            'tools.staticfile.filename': '%s/images/logo.ico' % paths.ui_dir
>           }
>       }
>




More information about the Kimchi-devel mailing list