Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Ticket #426 (defect)

Opened 2 years ago

Last modified 1 year ago

cherrypy.expose alias problems with dots

Status: closed (fixed)

Reported by: luizgeron_at_gmail_._com Assigned to: rdelon
Priority: normal Milestone:
Component: CherryPy code Keywords:
Cc:

When I use

def page(self):
  return "aihiahahha"
cherrypy.expose(page, alias = "page2") 

acessing both "page" and "page2" works, but when I use

def page(self):
  return "aihiahahha"
cherrypy.expose(page, alias = "page.py") 

only "page" works, acessing "page.py" results in a 404 error

Change History

12/30/05 07:55:21: Modified by lawouach

The problem comes _cputil.get_object_trail on line 48 which does :

# maps virtual names to Python identifiers (replaces '.' with '_')
objname = name.replace('.', '_')

05/02/06 18:42:40: Modified by fumanchu

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1091].

12/09/06 13:00:51: Modified by fumanchu

2.x fix in [1484].

Hosted by WebFaction

Log in as guest/cpguest to create tickets