Skip to content

Commit

Permalink
BUMP 1.3 see changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Dirolf committed Dec 16, 2009
1 parent e7a6ed9 commit afab7f6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 14 deletions.
34 changes: 30 additions & 4 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
Changelog
=========

Changes in Version 1.3
----------------------
- DEPRECATED running :meth:`~pymongo.collection.Collection.group` as
:meth:`~pymongo.database.Database.eval`, also changed default for
:meth:`~pymongo.collection.Collection.group` to running as a command
- remove :meth:`pymongo.cursor.Cursor.__len__`, which was deprecated
in 1.1.1 - needed to do this aggressively due to it's presence
breaking **Django** template *for* loops
- DEPRECATED :meth:`~pymongo.connection.Connection.host`,
:meth:`~pymongo.connection.Connection.port`,
:meth:`~pymongo.database.Database.connection`,
:meth:`~pymongo.database.Database.name`,
:meth:`~pymongo.collection.Collection.database`,
:meth:`~pymongo.collection.Collection.name` and
:meth:`~pymongo.collection.Collection.full_name` in favor of
:attr:`~pymongo.connection.Connection.host`,
:attr:`~pymongo.connection.Connection.port`,
:attr:`~pymongo.database.Database.connection`,
:attr:`~pymongo.database.Database.name`,
:attr:`~pymongo.collection.Collection.database`,
:attr:`~pymongo.collection.Collection.name` and
:attr:`~pymongo.collection.Collection.full_name`, respectively. The
deprecation schedule for this change will probably be faster than
usual, as it carries some performance implications.
- added :meth:`~pymongo.connection.Connection.disconnect`

Changes in Version 1.2.1
------------------------
- add :doc:`changelog` to docs
- add ``setup.py doc --test`` to run doctests for tutorial, examples
- move most examples to Sphinx docs (and remove from *examples/*
- added :doc:`changelog` to docs
- added ``setup.py doc --test`` to run doctests for tutorial, examples
- moved most examples to Sphinx docs (and remove from *examples/*
directory)
- raise :class:`~pymongo.errors.InvalidId` instead of
:class:`TypeError` when passing a 24 character string to
Expand Down Expand Up @@ -56,7 +82,7 @@ Changes in Version 1.1.1
- added `database` support for :class:`~pymongo.dbref.DBRef`
- added :mod:`~pymongo.json_util` with helpers for encoding / decoding
special types to JSON
- DEPRECATED :meth:`~pymongo.cursor.Cursor.__len__` in favor of
- DEPRECATED :meth:`pymongo.cursor.Cursor.__len__` in favor of
:meth:`~pymongo.cursor.Cursor.count` with `with_limit_and_skip` set
to ``True`` due to performance regression
- switch documentation to Sphinx
Expand Down
2 changes: 1 addition & 1 deletion pymongo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
ALL = 2
"""Profile all operations."""

version = "1.2.1+"
version = "1.3"
"""Current version of PyMongo."""

Connection = PyMongo_Connection
Expand Down
8 changes: 4 additions & 4 deletions pymongo/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def full_name(self):
The full name is of the form `database_name.collection_name`.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``full_name`` is now a property rather than a method. The
``full_name()`` method is deprecated.
"""
Expand All @@ -128,7 +128,7 @@ def full_name(self):
def name(self):
"""The name of this :class:`Collection`.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``name`` is now a property rather than a method. The
``name()`` method is deprecated.
"""
Expand All @@ -139,7 +139,7 @@ def database(self):
"""The :class:`~pymongo.database.Database` that this
:class:`Collection` is a part of.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``database`` is now a property rather than a method. The
``database()`` method is deprecated.
"""
Expand Down Expand Up @@ -646,7 +646,7 @@ def group(self, keys, condition, initial, reduce, finalize=None,
command instead of in an eval - this option is deprecated and
will be removed in favor of running all groups as commands
.. versionchanged:: 1.2.1+
.. versionchanged:: 1.3
The `command` argument now defaults to ``True`` and is deprecated.
"""

Expand Down
6 changes: 3 additions & 3 deletions pymongo/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _purge_index(self, database_name,
def host(self):
"""Current connected host.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``host`` is now a property rather than a method. The ``host()``
method is deprecated.
"""
Expand All @@ -298,7 +298,7 @@ def host(self):
def port(self):
"""Current connected port.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``port`` is now a property rather than a method. The ``port()``
method is deprecated.
"""
Expand Down Expand Up @@ -399,7 +399,7 @@ def disconnect(self):
connection pool. If the :class:`Connection` is used again it
will be automatically re-opened.
.. versionadded:: 1.2.1+
.. versionadded:: 1.3
"""
for i in range(self.__pool_size):
# prevent all operations during the reset
Expand Down
4 changes: 2 additions & 2 deletions pymongo/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def connection(self):
"""The :class:`~pymongo.connection.Connection` instance for this
:class:`Database`.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``connection`` is now a property rather than a method. The
``connection()`` method is deprecated.
"""
Expand All @@ -107,7 +107,7 @@ def connection(self):
def name(self):
"""The name of this :class:`Database`.
.. versionchanged:: 1.1.2+
.. versionchanged:: 1.3
``name`` is now a property rather than a method. The
``name()`` method is deprecated.
"""
Expand Down

0 comments on commit afab7f6

Please sign in to comment.