Skip to content

Commit

Permalink
Doc tweaks
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
bbangert committed Nov 24, 2008
1 parent 33d2bce commit 711b041
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions pylons/docs/en/forms.rst
Expand Up @@ -193,6 +193,7 @@ Our form actually has two fields, an email text field and a submit button. If ex
Pylons comes with an easy to use `validate` decorator, if you wish to use it import it in your `lib/base.py` like this:

.. code-block:: python
# other imports
from pylons.decorators import validate
Expand Down
5 changes: 2 additions & 3 deletions pylons/docs/en/gettingstarted.rst
Expand Up @@ -199,9 +199,8 @@ The default controller will return just the string 'Hello World':
import logging
from pylons import request, response, session
from pylons import tmpl_context as c
from pylons.controllers.util import abort, redirect_to, url_for
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from helloworld.lib.base import BaseController, render
# import helloworld.model as model
Expand Down
6 changes: 4 additions & 2 deletions pylons/docs/en/logging.rst
Expand Up @@ -18,7 +18,8 @@ For example, in the helloworld project's hello controller
import logging
from helloworld.lib.base import *
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
log = logging.getLogger(__name__)
Expand All @@ -36,7 +37,8 @@ To log messages, simply use methods available on that Logger object:
import logging
from helloworld.lib.base import *
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
log = logging.getLogger(__name__)
Expand Down
7 changes: 6 additions & 1 deletion pylons/docs/en/testing.rst
Expand Up @@ -268,9 +268,14 @@ Example:
assert response.email.name == 'Fred Smith'
.. see_also::
.. seealso::

`WebTest Documentation <http://pythonpaste.org/webtest/>`_
Documentation covering webtest and its usage

:mod:`WebTest Module docs <webtest>`
Module API reference for methods available for use when testing
the application

.. _unit_testing:

Expand Down
1 change: 1 addition & 0 deletions pylons/docs/en/thirdparty/routes.rst
Expand Up @@ -18,4 +18,5 @@
.. automodule:: routes.util

.. autofunction:: url_for
.. autoclass:: URLGenerator
.. autofunction:: redirect_to
5 changes: 2 additions & 3 deletions pylons/docs/en/views.rst
Expand Up @@ -68,9 +68,8 @@ To pass objects to templates, the standard Pylons method is to attach them to th

import logging

from pylons import request, response, session
from pylons import tmpl_context as c
from pylons.controllers.util import abort, redirect_to, url_for
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to

from helloworld.lib.base import BaseController, render
# import helloworld.model as model
Expand Down
2 changes: 1 addition & 1 deletion pylons/templating.py
Expand Up @@ -75,7 +75,7 @@ def index(self):
object for this request
- :class:`session` -- Pylons session object (unless Sessions are
removed)
- :method:`~routes.util.URLGenerator.url` -- Routes url generator
- :class:`url <routes.util.URLGenerator>` -- Routes url generator
object
- :class:`translator` -- Gettext translator object configured for
current locale
Expand Down

0 comments on commit 711b041

Please sign in to comment.