diff options
author | Chang Bo Guo <guochbo@cn.ibm.com> | 2013-12-10 05:30:17 -0800 |
---|---|---|
committer | Chang Bo Guo <guochbo@cn.ibm.com> | 2013-12-10 22:07:43 -0800 |
commit | 9751ccebfa8c3cfbbc6b38e398f35ab557d7747c (patch) | |
tree | adec307c72628013eab731e119b24e2b34de8d1d | |
parent | 1d6b3a471b8afb3e96253d539f44506428314049 (diff) | |
download | wsme-9751ccebfa8c3cfbbc6b38e398f35ab557d7747c.tar.gz |
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
-rw-r--r-- | README.rst | 4 | ||||
-rw-r--r-- | doc/integrate.rst | 2 | ||||
-rw-r--r-- | wsme/rest/args.py | 2 | ||||
-rw-r--r-- | wsme/types.py | 4 |
4 files changed, 6 insertions, 6 deletions
@@ -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 diff --git a/doc/integrate.rst b/doc/integrate.rst index 7659a40..bb84579 100644 --- a/doc/integrate.rst +++ b/doc/integrate.rst @@ -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 diff --git a/wsme/rest/args.py b/wsme/rest/args.py index 6ab9403..1492222 100644 --- a/wsme/rest/args.py +++ b/wsme/rest/args.py @@ -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: diff --git a/wsme/types.py b/wsme/types.py index 1193ee9..7adef83 100644 --- a/wsme/types.py +++ b/wsme/types.py @@ -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. |