Commit Graph

364 Commits

Author SHA1 Message Date
Bernie Hackett
9ca8ad7fc9 Changelog for version 2.7.2. 2014-07-25 10:56:39 -07:00
Bernie Hackett
6baba92fcf Changelog for 2.7.1 2014-05-23 13:39:00 -07:00
Jaroslav Semančík
15511b70d8 Added Jaroslav Semančík (girogiro) to contributors 2014-05-01 11:28:49 -07:00
Bernie Hackett
348bd628aa PYTHON-690 - Various fixes to indexing docstrings. 2014-05-01 09:59:09 -07:00
Bernie Hackett
2fd2efaa85 Mention the pykerberos module, which supports python 3. 2014-04-03 11:01:34 -07:00
Bernie Hackett
3ebb4b2eb2 Fix Collection.remove docs. 2014-03-19 13:19:07 -07:00
Bernie Hackett
f1637f1ebf Work around Xcode 5.1 build issues PYTHON-654
This patch attempts to work around the unrecognized
cflag errors raised by clang 3.4 - shipped with Xcode 5.1.
2014-03-13 16:06:12 -07:00
Bernie Hackett
7b5cbedb74 Minor install doc update. 2014-03-11 18:05:10 -07:00
Bernie Hackett
016fc4fc7a Better nModified handling PYTHON-647
In a sharded cluster with mixed version shards (i.e.
one shard primary is 2.6, another is 2.4 or older) the
result of one call to update could include nModified
when the next does not. Since there is no way to provide
a valid count in this case we omit the field. Make sure
you upgrade your entire cluster to MongoDB 2.6 or newer
before relying on this field.
2014-03-10 15:20:29 -07:00
A. Jesse Jiryu Davis
2538f2c403 Remove link to obsolete Django demo, PYTHON-649. 2014-03-10 17:38:30 -04:00
A. Jesse Jiryu Davis
4b30644318 Omit nModified field from Bulk API results if legacy server, PYTHON-647. 2014-03-06 16:27:27 -05:00
Bernie Hackett
dc125553fb Add Luke Lovett to contributors. 2014-02-21 13:46:25 -08:00
Bernie Hackett
2655341699 Update install docs. 2014-02-17 12:30:44 -08:00
Bernie Hackett
2cf8081538 Minor doc change. 2014-02-17 12:11:54 -08:00
Bernie Hackett
ea18bdc1e0 Update install instructions for release candidates. 2014-02-14 13:00:13 -08:00
Bernie Hackett
26139557eb parallel_collection_scan -> parallel_scan PYTHON-633
Spec change. Also added better documentation with a
very basic example.
2014-02-13 09:16:53 -08:00
Bernie Hackett
1545129fea Fix doctests. 2014-02-12 18:29:39 -08:00
Bernie Hackett
2a44435488 nUpdated -> nMatched - spec change PYTHON-630 2014-02-12 18:23:58 -08:00
Bernie Hackett
4bb1e577cf Add Kyle Erf to contributors. 2014-02-12 14:21:48 -08:00
Bernie Hackett
99a14c5f57 Release notes for PyMongo 2.7 2014-02-12 14:12:27 -08:00
Bernie Hackett
e3c809bd02 Gracefully kill cursor on capped rollover PYTHON-637
This change does a few things:

- Raises a new exception for CursorNotFound, inheriting from
OperationFailure so we don't break existing code.
- Catches the exception in cursor.Cursor and command_cursor.CommandCursor,
setting __killed to True.
- If the cursor is not tailable, re-raises the exception. This makes it
easier to deal with capped collection rollover when iterating a
tailable cursor.
2014-02-12 08:33:13 -08:00
Bernie Hackett
940d73f672 Add parallel_collection_scan helper PYTHON-633
This commit adds a helper for the new parallelCollectionScan
command introduced in MongoDB 2.5.5. The helper returns
"num_cursors" instances of CommandCursor that can be iterated
by one or more threads concurrently to scan the entire collection.

This commit also removes the remaining command cursor
hacks from cursor.Cursor.
2014-02-11 13:04:53 -08:00
Bernie Hackett
cdacc2f4b9 Fix aggregate cursor read preference issues PYTHON-636
The cursor returned by aggregate now knows what server
it was created on, allowing it to return getMore results
when the read preference is not PRIMARY.

This also introduces a simplified cursor class for use
with commands that return a cursor id and perhaps an initial
set of results. None of the methods of cursor.Cursor (other
than batch_size) make sense in this case.
2014-02-10 18:55:50 -08:00
Bernie Hackett
1f6cd4fd7a Bulk API docs and examples PYTHON-630 2014-02-01 19:21:42 -08:00
A. Jesse Jiryu Davis
2fa1750b07 Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
Bernie Hackett
5afaaef0f9 Don't doctest geoNear example.
The output differs too much from server release
to server release.
2014-01-30 17:16:26 -08:00
Bernie Hackett
01f6361929 Fluent API for bulk write operations PYTHON-630 2014-01-21 11:47:09 -08:00
Bernie Hackett
f38e77a78f Fix max_pool_size class signature docs PYTHON-629 2014-01-17 14:38:18 -08:00
Bernie Hackett
f423c079d9 Fix a few documentation issues. 2014-01-14 10:06:16 -08:00
Kyle Erf
237754dbef PYTHON-310: Added find() method to gridfs
Allows iteration through arbitrary queries against the files collection using
a new GridOutCursor class.
2014-01-06 14:57:00 -08:00
A. Jesse Jiryu Davis
f4f693e59e Spelling in FAQ. 2013-12-17 12:23:34 -05:00
A. Jesse Jiryu Davis
3757086e02 Raise ConfigurationError if a server's min wire version is > 2, PYTHON-587. 2013-12-14 12:57:09 -05:00
A. Jesse Jiryu Davis
e714609307 Spelling 2013-12-13 17:17:43 -05:00
A. Jesse Jiryu Davis
9c0c02ec02 Update tools.rst 2013-12-13 17:08:52 -05:00
A. Jesse Jiryu Davis
0e77c4e937 Merge branch 'master' of https://github.com/heynemann/mongo-python-driver into heynemann-master
* 'master' of https://github.com/heynemann/mongo-python-driver:
  Update tools.rst
2013-12-13 17:05:21 -05:00
behackett
ce7ce38ffd Basic support for min and maxWireVersion PYTHON-587 2013-11-25 13:44:34 -08:00
A. Jesse Jiryu Davis
a799d52765 Don't use servers without the right replica set name, PYTHON-591. 2013-11-05 22:04:51 -05:00
Bernie Hackett
67e3cfa5a4 Release notes for 2.6.3 2013-11-04 16:00:21 -05:00
behackett
cad76096d1 Release notes for 2.6.2 2013-11-04 16:00:05 -05:00
behackett
8c4d04bd1e Release notes for 2.6.1 2013-11-04 15:59:19 -05:00
Bernie Hackett
db1ec12f68 Don't use slave_okay in ha examples. 2013-11-03 08:20:12 -08:00
A. Jesse Jiryu Davis
e4cf504559 Option to not compile BSON regexes. PYTHON-500
Add a 'compile_re' parameter to Collection.find, Collection.find_one, and
json_util.loads. If it's False, regular expressions are encoded as a new class,
Regex, instead of passed to re.compile(). This allows PyMongo to handle regular
expressions that don't compile in Python but are valid in other contexts like
MongoDB queries.
2013-10-20 17:18:32 -04:00
A. Jesse Jiryu Davis
dcdcb6877e Add Yuchen Ying to contributors 2013-10-17 16:44:52 -04:00
Bernardo Heynemann
977e5455e3 Update tools.rst
Added MotorEngine to the list of tools.
2013-10-04 22:43:08 -03:00
behackett
35ed7c50c7 Add a geo example using $maxDistance. 2013-10-01 19:20:58 -07:00
Gianfranco Palumbo
8d66b565f8 Correct python module import for auth examples 2013-09-24 05:11:38 -04:00
A. Jesse Jiryu Davis
30882a5fbe Improved mod_wsgi docs. PYTHON-567 2013-09-18 11:54:54 -04:00
hawka
193628f9e4 updating docs 2013-08-30 15:51:50 -04:00
hawka
74546ec88d Adding Support for readPreferenceTags and uuidRepresentation in URI parsing. PYTHON-473 2013-08-30 15:38:34 -04:00
behackett
f804c8e16e Release notes and other doc fixes for 2.6. 2013-08-18 09:24:06 -07:00