Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/examples/related.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Related Models
============================

There are two :class:`Fields` which represents relationaships between
There are two :class:`Fields` which represents relationships between
:class:`StdModel`.


Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/serialise.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ There are two serializers included in the standard distribution: **json** and **
Exporting Data
====================

To export data is quite strightforward, you create a :class:`Query` and
To export data is quite straightforward, you create a :class:`Query` and
pass it to a :meth:`Serializer.dump` method. Using the
:ref:`models router <tutorial-models-router>` in the first tutorial::

Expand Down
6 changes: 3 additions & 3 deletions examples/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ def permitted_query(self, query, group, operations):
return query
roles = group.roles.query()
roles = group.roles.query() # query on all roles for group
# The throgh model for Role/Permission relationship
throgh_model = models.role.permissions.model
models[throgh_model].filter(role=roles,
# The through model for Role/Permission relationship
through_model = models.role.permissions.model
models[through_model].filter(role=roles,
permission__model_type=query.model,
permission__operations=operations)

Expand Down
2 changes: 1 addition & 1 deletion stdnet/backends/redisb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
############################################################################
# prefixes for data
OBJ = 'obj' # the hash table for a instance
TMP = 'tmp' # temorary key
TMP = 'tmp' # temporary key
ODM_SCRIPTS = ('odmrun', 'move2set', 'zdiffstore')
############################################################################

Expand Down
2 changes: 1 addition & 1 deletion stdnet/odm/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def get_lookup(self, name, errorClass=ValueError):

class JSONField(CharField):
'''A JSON field which implements automatic conversion to
and from an object and a JSON string. It is the responsability of the
and from an object and a JSON string. It is the responsibility of the
user making sure the object is JSON serializable.

There are few extra parameters which can be used to customize the
Expand Down
2 changes: 1 addition & 1 deletion stdnet/odm/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def create_all(self):
manager.create_all()

def add(self, instance):
'''Add an ``instance`` to its backend database. This is a shurtcut
'''Add an ``instance`` to its backend database. This is a shortcut
method for::

self.session().add(instance)
Expand Down
2 changes: 1 addition & 1 deletion stdnet/odm/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def add_word_middleware(self, middleware, for_search=True):
'''Add a *middleware* function to the list of :attr:`word_middleware`,
for preprocessing words to be indexed.

:param middleware: a callable receving an iterable over words.
:param middleware: a callable receiving an iterable over words.
:param for_search: flag indicating if the *middleware* can be used for the
text to search. Default: ``True``.
'''
Expand Down
2 changes: 1 addition & 1 deletion stdnet/odm/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def __str__(self):

def __call__(self, *args, **kwargs):
# The callable method is equivalent of doing self.model() it is just
# a shurtcut for a better API
# a shortcut for a better API
return self.model(*args, **kwargs)

def session(self, session=None):
Expand Down
2 changes: 1 addition & 1 deletion stdnet/utils/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class attribute which indicates which backend can run the test. There are
* ``multipledb = False`` The test case does not require a backend and
only one :class:`TestCase` class is added to the test-suite regardless
of which backend has been tested.
* ``multipledb = True``, the default falue. Create as many
* ``multipledb = True``, the default false. Create as many
:class:`TestCase` classes as the number of backend tested, each backend
will run the tests.
* ``multipledb = string, list, tuple``, Only those backend will run tests.
Expand Down