Skip to content
Browse files

Fix mentions of controllers.py to root.py

  • Loading branch information...
1 parent 716fbca commit b0ddea21f8b330366b94c24ad8c083cf59ee47b3 @moschlar moschlar committed
Showing with 19 additions and 18 deletions.
  1. +9 −9 docs/main/Controllers.rst
  2. +10 −9 docs/main/explorequickstart.rst
View
18 docs/main/Controllers.rst
@@ -10,18 +10,18 @@ and can call upon other TurboGears components (the template engines,
database layers, etc.) as its logic directs.
When the TurboGears server receives an HTTP request, the requested URL
-is mapped as a call to your controller code located in
-``controllers.py``. Page names map to functions within the controller
-class.
+is mapped as a call to your controller code located in the
+``controllers`` package. Page names map to other controllers or
+methods within the controller class.
For example:
-================================== ======================
+================================== ============================
URL Maps to
-================================== ======================
-``http://localhost:8080/index`` ``Root.index()``
-``http://localhost:8080/mypage`` ``Root.mypage()``
-================================== ======================
+================================== ============================
+``http://localhost:8080/index`` ``RootController.index()``
+``http://localhost:8080/mypage`` ``RootController.mypage()``
+================================== ============================
Quick Example
@@ -31,7 +31,7 @@ Suppose using ``paster quickstart`` you generate a TurboGears project
named "HelloWorld". Your default controller code would be created in
the file ``HelloWorld/helloworld/controllers/root.py``.
-Modify the default ``controllers.py`` to read as follows:
+Modify the default ``root.py`` to read as follows:
.. code-block:: python
View
19 docs/main/explorequickstart.rst
@@ -38,18 +38,19 @@ ultimately handles all user actions, because every HTTP request arrives here
first. The controller acts on the request and can call upon other TurboGears
components (the template engines, database layers, etc.) as its logic directs.
-When the TurboGears server receives an HTTP request, the requested URL is mapped
-as a call to your controller code located in ``controllers.py``. Page names map
-to functions within the controller class.
+When the TurboGears server receives an HTTP request, the requested URL
+is mapped as a call to your controller code located in the
+``controllers`` package. Page names map to other controllers or
+methods within the controller class.
For example:
-================================== ======================
+================================== ============================
URL Maps to
-================================== ======================
-``http://localhost:8080/index`` ``Root.index()``
-``http://localhost:8080/mypage`` ``Root.mypage()``
-================================== ======================
+================================== ============================
+``http://localhost:8080/index`` ``RootController.index()``
+``http://localhost:8080/mypage`` ``RootController.mypage()``
+================================== ============================
Quick Example
@@ -61,7 +62,7 @@ Suppose using ``paster quickstart`` you generate a TurboGears project
named "HelloWorld". Your default controller code would be created in the
file ``HelloWorld/helloworld/controllers/root.py``.
-Modify the default ``controllers.py`` to read as follows:
+Modify the default ``root.py`` to read as follows:
.. code-block:: python

0 comments on commit b0ddea2

Please sign in to comment.
Something went wrong with that request. Please try again.