From 28ba116943a6eb9a87e9c3d1e9f39a775215fc7f Mon Sep 17 00:00:00 2001 From: daisy-ycguo Date: Thu, 31 May 2012 11:59:57 +0800 Subject: [PATCH] bug #1006094 correct typo in addmethod.openstackapi.rst Change-Id: Ic03996357aacb6f135b95fc1e5810066b776b980 --- Authors | 1 + doc/source/devref/addmethod.openstackapi.rst | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Authors b/Authors index a78e0033b..1b87ffcaf 100644 --- a/Authors +++ b/Authors @@ -207,6 +207,7 @@ William Henry William Kelly William Wolf Yaguang Tang +Ying Chun Guo Yoshiaki Tamura Youcef Laribi Yun Mao diff --git a/doc/source/devref/addmethod.openstackapi.rst b/doc/source/devref/addmethod.openstackapi.rst index f19d79d31..18123f8cc 100644 --- a/doc/source/devref/addmethod.openstackapi.rst +++ b/doc/source/devref/addmethod.openstackapi.rst @@ -35,7 +35,7 @@ Controllers and actions Controllers live in ``nova/api/openstack``, and inherit from nova.wsgi.Controller. -See ``nova/api/openstack/servers.py`` for an example. +See ``nova/api/openstack/compute/servers.py`` for an example. Action methods take parameters that are sucked out of the URL by mapper.connect() or .resource(). The first two parameters are self and the WebOb request, from which you can get the req.environ, req.body, req.headers, etc. @@ -46,7 +46,7 @@ Actions return a dictionary, and wsgi.Controller serializes that to JSON or XML If you define a new controller, you'll need to define a ``_serialization_metadata`` attribute on the class, to tell wsgi.Controller how to convert your dictionary to XML. It needs to know the singular form of any list tag (e.g. ```` list contains ```` tags) and which dictionary keys are to be XML attributes as opposed to subtags (e.g. ```` instead of ``4``). -See `nova/api/openstack/servers.py` for an example. +See `nova/api/openstack/compute/servers.py` for an example. Faults ------