Skip to content

Commit

Permalink
[svn] updated extra paste.fixture response attributes
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
pjenvey committed Jul 27, 2006
1 parent 9b5b285 commit a30fa92
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions docs/testing_web_application.txt
Expand Up @@ -16,19 +16,12 @@ Pylons will provide several additional attributes for the ``paste.fixture`` resp

``session``
Session object
``request``
``req``
Request object
``m``
Myghty object
``comp_calls``
List of component calls, including any ``scomp``, ``comp``, and ``subexec`` thats executed during the request. Each item of the list is a dict with the keys:

``comp_type``
The type of component call, i.e. ``scomp``, ``comp``, or ``subexec``
``template``
Template name that was called, i.e. ``/some/template.myt``
``params``
Dict of keyword args that the component was called with
``c``
Object containing variables passed to templates
``g``
Globals object

To use them, merely access the attributes of the response *after* you've used a get/post command::

Expand Down

0 comments on commit a30fa92

Please sign in to comment.