<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Le 19/09/2011 15:11, paul a écrit :
<blockquote cite="mid:4E773F72.10508@aptrackers.com" type="cite">Hi,
Jan,
<br>
<br>
I think Noe's answer "sorta" helped. The problem with doing it
through resource.need(), is that for a favicon.ico, the link
header should be something like:
<br>
<br>
<link rel="SHORTCUT ICON"type="image/x-icon"href="path to
.ico file" />
<br>
<br>
If you just use resource.need(), you get the href bit right, but
the "rel=" and "type=" parts are not right. I eventually settled
for doing:
<br>
<br>
<link rel="SHORTCUT
ICON"type="image/x-icon"href=<a class="moz-txt-link-rfc2396E" href="mailto:@@/fanstatic/appname/favico.ico">"@@/fanstatic/appname/favico.ico"</a>
/>
<br>
<br>
Which seems to work ok.
</blockquote>
<br>
Here, using fanstatic 0.11.2, the ".ico" of the ressource make it
recognized as a favicon and fanstatic automatically represent it
with :<br>
<pre id="line12"><<span class="start-tag">link</span><span class="attribute-name"> rel</span>=<span class="attribute-value">"shortcut icon" </span><span class="attribute-name">type</span>=<span class="attribute-value">"image/x-icon" </span><span class="attribute-name">href</span><span>="</span><a href="view-source:http://localhost:8081/fanstatic/vigirisk_library/:version:2011-09-12T11:00:54.09/favicon.ico">xxxxx</a><span>"</span><span class="error"><span class="attribute-name">/</span></span>>
It's done by function render_ico in core.py registere for '.ico'
Cheers,
Alex</pre>
</body>
</html>