[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/apidoc/browser/ apidoc used to crash if no default skin was set. This was because it

Fred Drake fdrake at gmail.com
Tue Oct 5 11:33:39 EDT 2004


On Tue,  5 Oct 2004 10:50:55 -0400 (EDT), Stephan Richter
<srichter at cosmos.phy.tufts.edu> wrote:
> Log message for revision 27746:
>   apidoc used to crash if no default skin was set. This was because it
>   always expected the favicon to be available. Conditionalizing the lookup
>   fixed the problem.
...
>      <link rel="icon" type="image/png"
> -          tal:attributes="href context/++resource++favicon.png" />
> +          tal:attributes="href context/++resource++favicon.png|default" />
...
>      <link rel="icon" type="image/png"
> -          tal:attributes="href context/++resource++favicon.png" />
> +          tal:attributes="href context/++resource++favicon.png|default" />

I guess that helps, but is it really enough?

I suspect the right thing is to use
tal:condition="context/++resource++favicon.png | nothing" so the
<link/> element is omitted if there isn't a matching resource.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
Zope Corporation


More information about the Zope3-Checkins mailing list