Skip to content

Commit 35f52cc

Browse files
author
Mike Dirolf
committed
BUMP 1.5.1 -- see changelog for details
1 parent 97b91b7 commit 35f52cc

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

doc/changelog.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
Changelog
22
=========
33

4+
Changes in Version 1.5.1
5+
------------------------
6+
- added :data:`~gridfs.grid_file.GridFile._id` property for
7+
:class:`~gridfs.grid_file.GridFile` instances.
8+
- fix for making a :class:`~pymongo.connection.Connection` (with
9+
`slave_okay` set) directly to a slave in a replica pair.
10+
- accept kwargs for
11+
:meth:`~pymongo.collection.Collection.create_index` and
12+
:meth:`~pymongo.collection.Collection.ensure_index` to support all
13+
indexing options.
14+
- add :data:`pymongo.GEO2D` and support for geo indexing.
15+
- improvements to Python code caching in C extension - should improve
16+
behavior on mod_wsgi.
17+
418
Changes in Version 1.5
519
----------------------
620
- added subtype constants to :mod:`~pymongo.binary` module.

gridfs/grid_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __erase(self):
168168
def _id(self):
169169
"""The ``"_id"`` value for this :class:`GridFile`.
170170
171-
.. versionadded:: 1.5+
171+
.. versionadded:: 1.5.1
172172
"""
173173
return self.__id
174174

pymongo/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
GEO2D = "2d"
2525
"""Index specifier for a 2-dimensional `geospatial index`_.
2626
27-
.. versionadded:: 1.5+
27+
.. versionadded:: 1.5.1
2828
2929
.. note:: Geo-spatial indexing requires server version **>= 1.3.3+**.
3030
@@ -38,7 +38,7 @@
3838
ALL = 2
3939
"""Profile all operations."""
4040

41-
version = "1.5+"
41+
version = "1.5.1"
4242
"""Current version of PyMongo."""
4343

4444
Connection = PyMongo_Connection

pymongo/collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def create_index(self, key_or_list, deprecated_unique=None, ttl=300, **kwargs):
554554
- `kwargs` (optional): any additional index creation options
555555
(see the above list) should be passed as keyword arguments
556556
557-
.. versionchanged:: 1.5+
557+
.. versionchanged:: 1.5.1
558558
Accept kwargs to support all index creation options.
559559
560560
.. versionadded:: 1.5
@@ -642,7 +642,7 @@ def ensure_index(self, key_or_list, deprecated_unique=None, ttl=300, **kwargs):
642642
- `kwargs` (optional): any additional index creation options
643643
(see the above list) should be passed as keyword arguments
644644
645-
.. versionchanged:: 1.5+
645+
.. versionchanged:: 1.5.1
646646
Accept kwargs to support all index creation options.
647647
648648
.. versionadded:: 1.5

0 commit comments

Comments
 (0)