Hi,

I would like to propose two changes on the page
http://docs.turbogears.org/1.0/GettingStarted/CherryPy

First of all, a spelling mistake:
"We import anoter helpful utility 'turbogears.redirect' here. It's
pretty self-explaination."

"anoter" -> "another"


Furthermore I think the page should contain a reference to an
explanation how CherryPy does URL mapping:
...
> The idea is we "instance" the "subfolder" class to 'sub',  which is
> mapped to /sub folder in URL.
> 
> You can think as you create a folder named 'sub' under your web
> space, or you can think as you name the 'subfolder' object as 'sub',
> and mount it on the 'Root' object.

Proposed addition:
----------------------------------------------------------------------
If you need to know how CherryPy maps urls to functions, you need to 
read the excellent CherryPy source documentation. Look for the function 
mapPathToObject(self, objectpath) in cherrypy/_cphttptools.py. Look at 
the `source code for mapPathToObject in CherryPy 2.x 
2.x<http://www.cherrypy.org/browser/branches/cherrypy-2.x/cherrypy/_cphttptools.py#L271>`_
 
  for more details.
----------------------------------------------------------------------

fs

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Docs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-docs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to