Minor doc updates.

This commit is contained in:
Bernie Hackett 2011-12-17 18:29:59 -08:00
parent 5133b0f68b
commit f3d8b86a26
7 changed files with 14 additions and 9 deletions

View File

@ -51,7 +51,8 @@ This is the new BSON binary subtype for UUIDs. The
current default is :data:`OLD_UUID_SUBTYPE` but will
change to this in a future release.
.. versionchanged:: 2.0.1+
.. versionchanged:: 2.1
Changed to subtype 4.
.. versionadded:: 1.5
"""
@ -61,7 +62,7 @@ OLD_UUID_SUBTYPE = 3
:class:`uuid.UUID` instances will automatically be encoded
by :mod:`bson` using this subtype.
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
"""
MD5_SUBTYPE = 5

View File

@ -30,6 +30,7 @@ Important New Features:
- Added support for the MongoDB URI options socketTimeoutMS and connectTimeoutMS.
- Added support for the ContinueOnError insert flag.
- Added basic SSL support.
- Added basic support for Jython.
- Secondaries can be used for :meth:`~pymongo.cursor.Cursor.count`,
:meth:`~pymongo.cursor.Cursor.distinct`, :meth:`~pymongo.collection.Collection.group`,
and querying :class:`~gridfs.GridFS`.

View File

@ -33,7 +33,7 @@ GEO2D = "2d"
GEOHAYSTACK = "geoHaystack"
"""Index specifier for a 2-dimensional `haystack index`_.
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
.. note:: Geo-spatial indexing requires server version **>= 1.5.6+**.

View File

@ -63,6 +63,8 @@ class Collection(common.BaseObject):
- `**kwargs` (optional): additional keyword arguments will
be passed as options for the create collection command
.. versionadded:: 2.1
uuid_subtype attribute
.. versionchanged:: 1.5
deprecating `options` in favor of kwargs
.. versionadded:: 1.5
@ -280,7 +282,7 @@ class Collection(common.BaseObject):
.. note:: `continue_on_error` requires server version **>= 1.9.1**
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
Support for continue_on_error.
.. versionadded:: 1.8
Support for passing `getLastError` options as keyword

View File

@ -186,7 +186,8 @@ class BaseObject(object):
def __get_slave_okay(self):
"""DEPRECATED. Use `read_preference` instead.
.. versionchanged:: 2.0.1+
.. versionchanged:: 2.1
Deprecated slave_okay.
.. versionadded:: 2.0
"""
return self.__slave_okay
@ -204,7 +205,7 @@ class BaseObject(object):
See :class:`~pymongo.ReadPreference` for available options.
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
"""
return self.__read_pref

View File

@ -270,7 +270,7 @@ class Connection(common.BaseObject):
instead.
.. seealso:: :meth:`end_request`
.. versionchanged:: 2.0.1+
.. versionchanged:: 2.1
Support `w` = integer or string.
Added `ssl` option.
DEPRECATED slave_okay/slaveOk.
@ -720,7 +720,7 @@ class Connection(common.BaseObject):
could lead to unexpected results.
.. seealso:: :meth:`end_request`
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
"""
self.disconnect()

View File

@ -179,7 +179,7 @@ class ReplicaSetConnection(common.BaseObject):
- `slave_okay` or `slaveOk` (deprecated): Use `read_preference`
instead.
.. versionadded:: 2.0.1+
.. versionadded:: 2.1
"""
self.__max_pool_size = max_pool_size
self.__document_class = document_class