#1056: Failed to start up the server when unicode characters used for mapping.
---------------------+------------------------------------------------------
Reporter: guest | Owner: fumanchu
Type: defect | Status: new
Priority: highest | Milestone: 3.3
Component: engine | Keywords:
---------------------+------------------------------------------------------
Originally posted at
http://shiroyuki.lighthouseapp.com/projects/68526/tickets/10-tori-failed-
to-start-with-cherrypy-32
'''CherryPy 3.2''' does not accept '''a unicode string''' for URL mapping
but '''CherryPy 3.1''' does.
'''How to reproduce'''
First, before executing (tori.ServerInterface.standalone (alias to
cherrypy.quickstart), set up a dict.
{{{
#!python
routing = {
u'/': {
'tools.sessions.on': True,
'tools.sessions.timeout': 10,
'tools.sessions.storage_type': 'file',
'tools.sessions.storage_path': path['session']
}
}
}}}
Then, run the following.
{{{
#!python
Equivalent to cherrypy.quickstart(DocumentRoot(), '/', config=routing)
}}}
You will see that the process stop right away.
'''More from investigation'''
The process dies when `Bus.start()` in
'''py2/cherrypy/process/wspbus.py''' is called.
--
Ticket URL: <
http://cherrypy.org/ticket/1056>
CherryPy <
http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework