summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Lung <chad.lung@gmail.com>2014-03-05 18:23:26 -0600
committerChad Lung <chad.lung@gmail.com>2014-03-05 18:23:26 -0600
commit288e0f1ee8ce0716c14d7b8ed8144cb8088fc7f1 (patch)
tree0519010d54dd2ed5c7c74dd5396d09bf89e7a457
parente896a7416360a2ffdb2563acaeb65e8ab7d03ed2 (diff)
downloadwsme-288e0f1ee8ce0716c14d7b8ed8144cb8088fc7f1.tar.gz
Fixing spelling mistakes
Change-Id: Iaff4fc336a2b1a1c7998717baa65912dba528b66
-rw-r--r--doc/types.rst8
-rw-r--r--wsme/types.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/types.rst b/doc/types.rst
index 7d6a291..bbd701f 100644
--- a/doc/types.rst
+++ b/doc/types.rst
@@ -59,8 +59,8 @@ The native types are :
def getlist(self):
return ['a', 'b', 'c']
- - Dictionnaries -- Statically typed mapping are allowed. When exposing
- a dictionnary datatype, you can specify the key and value types,
+ - Dictionaries -- Statically typed mapping are allowed. When exposing
+ a dictionary datatype, you can specify the key and value types,
with a restriction on the key value that must be a 'pod' type.
Example::
@@ -80,7 +80,7 @@ types by the different protocols, but needs conversion to/from this basetypes,
or needs to validate data integrity.
To define a user type, you just have to inherit from
-:class:`wsme.types.UserType` and instanciate your new class. This instance
+:class:`wsme.types.UserType` and instantiate your new class. This instance
will be your new type and can be used as @\ :class:`wsme.expose` or
@\ :class:`wsme.validate` parameters.
@@ -171,7 +171,7 @@ A few things you should know about complex types:
- The class must have a default constructor --
Since instances of the type will be created by the protocols when
- used as input types, they must be instanciable without any argument.
+ used as input types, they must be instantiable without any argument.
- Complex types are registered automatically
(and thus inspected) as soon a they are used in expose or validate,
diff --git a/wsme/types.py b/wsme/types.py
index 623996b..383dea6 100644
--- a/wsme/types.py
+++ b/wsme/types.py
@@ -69,7 +69,7 @@ class ArrayType(object):
class DictType(object):
def __init__(self, key_type, value_type):
if key_type not in pod_types:
- raise ValueError("Dictionnaries key can only be a pod type")
+ raise ValueError("Dictionaries key can only be a pod type")
self.key_type = key_type
if iscomplex(value_type):
self._value_type = weakref.ref(value_type)