[Grok-dev] NotFound: Object: <zope.site.folder.Folder object at 0x#######>, name: u'favicon.ico'

Jan-Jaap Driessen jdriessen at thehealthagency.com
Fri Dec 31 07:55:18 EST 2010


On 31 December 2010 11:39, Vincent Fretin <vincent.fretin at gmail.com> wrote:
> Hi,
>
> With the code given by Jan-Jaap, if you try to access to favicon.ico, you
> get:
> TypeError: The result should be None, a string, or adaptable to IResult.
>
> Simply add read() and it works fine. I can see the favicon in the url bar.
> return resource_stream('dolmenexample', 'favicon.ico').read()

Or use resource_string(...) instead of resource_stream(...).read()

> Happy new year!
>
> Vincent
>

-- 
Jan-Jaap Driessen


More information about the Grok-dev mailing list