Products\Silva\mimetypes.py causes problems on Windows

Bug #1037637 reported by Benno Luthiger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Undecided
Unassigned

Bug Description

Silva 2.3 can't start on a Windows machine because of Products\Silva\mimetypes.py.
In this module, a list of locations where mime.types may be defined is given (_DEFAULT_MIME_TYPES).
However, this list makes sense only on Unix base systems and, therefore, the windows statrup procedure stops with a RuntimeError "Cannot find a mime.types file. Please add a configuration entry pointing to one."

Tags: silva2.3
Revision history for this message
Sylvain Viollon (thefunny) wrote :

This is already fixed (this was true in the first version of Silva 2.3), but is fixed in 2.3.6 at least. You can use in zope.conf a product configuration for silva to define the path of the mime_types file. In all recent Silva buildout a default file is provided for consistency.

    <product-config silva>
       mime_types /path/to/mime.types
    </product-config>

Changed in silva:
milestone: none → 2.3.6
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.