Fix typos in documents and comments

Fix typos detected by toolkit misspellings.

* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -

Change-Id: I59de119feb6f973602fbfd98a75a1d529bc30bde
This commit is contained in:
Chang Bo Guo 2013-12-10 05:30:17 -08:00
parent 1d6b3a471b
commit 9751ccebfa
4 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@ by providing simple yet powerful typing which removes the need to directly
manipulate the request and the response objects.
WSME can work standalone or on top of your favorite python web
(micro)framework, so you can use both your prefered way of routing your REST
(micro)framework, so you can use both your preferred way of routing your REST
requests and most of the features of WSME that rely on the typing system like:
- Alternate protocols, including ones supporting batch-calls
@ -60,7 +60,7 @@ Main features
- Supports user-defined simple and complex types.
- Multi-protocol : REST+Json, REST+XML, SOAP, ExtDirect and more to come.
- Extensible : easy to add more protocols or more base types.
- Framework independance : adapters are provided to easily integrate
- Framework independence : adapters are provided to easily integrate
your API in any web framework, for example a wsgi container,
Pecan_, TurboGears_, Flask_, cornice_...
- Very few runtime dependencies: webob, simplegeneric. Optionnaly lxml and

View File

@ -196,7 +196,7 @@ configuration entry in ``config.py``:
Valid configuration variables are :
- ``'debug'``: Wether or not to include exception tracebacks in the returned
- ``'debug'``: Whether or not to include exception tracebacks in the returned
server-side errors.
Example

View File

@ -257,7 +257,7 @@ def get_args(funcdef, args, kwargs, params, form, body, mimetype):
* the request body
Note that the host framework args and kwargs can be overridden
by arguements from params of body
by arguments from params of body
"""
# get the body from params if not given directly
if not body and '__body__' in params:

View File

@ -512,7 +512,7 @@ class wsattr(object):
#: attribute data type. Can be either an actual type,
#: or a type name, in which case the actual type will be
#: determined when needed (generaly just before scaning the api).
#: determined when needed (generally just before scanning the api).
datatype = property(_get_datatype, _set_datatype)
@ -530,7 +530,7 @@ def sort_attributes(class_, attributes):
3 mechanisms are attempted :
#. Look for a _wsme_attr_order attribute on the class_. This allow
to define an arbitrary order of the attributes (usefull for
to define an arbitrary order of the attributes (useful for
generated types).
#. Access the object source code to find the declaration order.