[CherryPy] #1056: Failed to start up the server when unicode characters used for mapping.

8 views
Skip to first unread message

CherryPy

unread,
Apr 1, 2011, 4:19:12 PM4/1/11
to cherrypy...@googlegroups.com
#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

CherryPy

unread,
Oct 26, 2011, 11:05:58 AM10/26/11
to cherrypy...@googlegroups.com
#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 | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by guest):

ok it wiil good!
{{{
#!html
<h4 style="text-align: right; color: white"> <a
href="http://ff.com">asdfwqefvewqfv</a>
</h4>
}}}

--
Ticket URL: <http://www.cherrypy.org/ticket/1056>
Reply all
Reply to author
Forward
0 new messages