Exposing a method that includes a dot

3 views
Skip to first unread message

Paul Johnston

unread,
Jun 8, 2007, 10:18:19 AM6/8/07
to turbo...@googlegroups.com
Hi,

How can I expose a method that contains a dot? I want to make "mypage.py" redirect to "mypage", this is to keep URL compatibility with the previous system. I notice CherryPy lets you expose a method with an alias, but this doesn't seem to be possible with TG's @expose.

Thanks for any help,

Paul

Chris Miles

unread,
Jun 8, 2007, 10:26:29 AM6/8/07
to turbo...@googlegroups.com, Chris Miles
Call the method mypage_py.

Cheers
CM

Christopher Arndt

unread,
Jun 8, 2007, 1:21:53 PM6/8/07
to turbo...@googlegroups.com
Chris Miles schrieb:

>> How can I expose a method that contains a dot?
> Call the method mypage_py.

Indeed, this works! I learn something new everyday. Where is this
documented? Is this a cherrypy feature or TG?

Chris

fumanchu

unread,
Jun 8, 2007, 2:11:23 PM6/8/07
to TurboGears

It's a CherryPy feature, but wasn't documented. I just added a blurb
to http://www.cherrypy.org/wiki/PageHandlers#DefaultDispatcher


Robert Brewer
System Architect
Amor Ministries
fuma...@amor.org

Reply all
Reply to author
Forward
0 new messages