Commit Graph

69 Commits

Author SHA1 Message Date
Bernie Hackett
2fd2efaa85 Mention the pykerberos module, which supports python 3. 2014-04-03 11:01:34 -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
4b30644318 Omit nModified field from Bulk API results if legacy server, PYTHON-647. 2014-03-06 16:27:27 -05:00
Bernie Hackett
2cf8081538 Minor doc change. 2014-02-17 12:11:54 -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
1f6cd4fd7a Bulk API docs and examples PYTHON-630 2014-02-01 19:21:42 -08: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
db1ec12f68 Don't use slave_okay in ha examples. 2013-11-03 08:20:12 -08: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
A. Jesse Jiryu Davis
5a88c6c2f4 Update docs for new pool options. PYTHON-436 2013-08-16 09:43:50 -04:00
behackett
40a32cc4a2 Authentication examples PYTHON-544 2013-07-25 16:46:16 -07:00
Ross Lawley
cf9dca6970 Documentation clarifications PYTHON-486 / PYTHON-487 2013-03-13 15:11:16 +00:00
A. Jesse Jiryu Davis
d2b23a535c Update docs for Connection->MongoClient change PYTHON-452 2013-02-10 10:53:35 -05:00
behackett
8aa99a507f Fix minor typo. 2013-01-22 18:44:58 -08:00
A. Jesse Jiryu Davis
0f9ab4000a Clarify order of imports in Gevent example 2012-11-26 22:11:39 -05:00
A. Jesse Jiryu Davis
084e145018 Rewrite Gevent example, most people shouldn't set use_greenlets but instead should just patch_all() PYTHON-435 2012-11-26 16:41:56 -05:00
A. Jesse Jiryu Davis
0921ba8194 Continue rewriting "requests" doc for MongoClient PYTHON-423 2012-11-19 16:26:33 -05:00
A. Jesse Jiryu Davis
1ef62dc90a Fix RST formatting in requests doc 2012-11-19 15:36:55 -05:00
A. Jesse Jiryu Davis
53f6e0a122 Rewrite "requests" doc for MongoClient and new w=1 default PYTHON-423 2012-11-19 15:36:43 -05:00
Bernie Hackett
31beb2b61c Fix a few ReadPreference doc issues. 2012-11-16 19:47:54 -08:00
Bernie Hackett
e48738b953 Use Mongo(ReplicaSet)Client in examples PYTHON-423 2012-11-16 19:16:32 -08:00
Bernie Hackett
fee292bcc1 Fix a number of doc test failures. 2012-11-16 18:40:42 -08:00
behackett
42028cb663 Minor doc updates and changelog for 2.3. 2012-07-31 15:29:21 -07:00
behackett
66d2a9647b Doc changes for mongos ha PYTHON-368 2012-07-30 17:09:37 -07:00
A. Jesse Jiryu Davis
f275b2291a Implement read preferences for distributing reads among replica set members PYTHON-367
Replace the 'mongo' dict with a Member object everywhere in ReplicaSetConnection.
A handful of commands obey read preferences; most are always sent to primary.
Track a 5-sample moving average of each replica set member's ping time.
Connection detects whether it's connected to primary, secondary, or mongos.
2012-07-25 00:05:06 -04:00
Ross Lawley
a5432ea0f3 Add helper for aggregate command PYTHON-366
Added collection helper method.
Created an aggregation example covering:
 * aggregate
 * map reduce
 * group
2012-07-12 09:43:55 +01:00
A. Jesse Jiryu Davis
8bd18b3cd1 Clarify gevent documentation 2012-07-11 17:18:48 -04:00
Bernie Hackett
0e026ede7e More doc cleanups. 2012-04-29 20:51:48 -07:00
A. Jesse Jiryu Davis
534073b08a Updating Gevent docs PYTHON-296 2012-04-29 21:34:05 -04:00
behackett
e02ee18672 Minor gevent doc fixes. 2012-04-20 13:41:51 -07:00
behackett
59ec2fdc08 Fix doc issues related to dochub.mongodb.org 2012-04-19 12:01:18 -07:00
A. Jesse Jiryu Davis
0386f2d17b Typo in start/end_request example doc 2012-03-20 13:15:27 -03:00
A. Jesse Jiryu Davis
82ae65d0b4 Further doc improvements for start/end_request PYTHON-287 2012-03-20 10:00:12 -04:00
A. Jesse Jiryu Davis
2b29ce0355 Include example using start_request as context manager PYTHON-287 2012-03-20 10:00:12 -04:00
A. Jesse Jiryu Davis
0c16f4029a Updates to requests documentation 2012-03-20 10:00:12 -04:00
A. Jesse Jiryu Davis
06f87b164b Beginning to improve start/end_request documentation PYTHON-287 2012-03-20 10:00:12 -04:00
A. Jesse Jiryu Davis
f58f51c851 Update async documentation PYTHON-296 2012-03-19 21:09:33 -04:00
behackett
0c560a5cc4 Fix a few doc test failures. 2012-02-08 15:30:44 -08:00
Wouter Bolsterlee
930e22c6fd Improve legibility of map/reduce code examples
Use triple-quoted multiline strings in the examples, so that the
examples are more readable. It also makes copy/pasting (e.g. to a
mongo shell) a lot easier.
2012-02-08 15:17:11 -08:00
Wouter Bolsterlee
49ebd97826 Don't overwrite built-in names in map/reduce examples
Avoid assigning the MongoDB map/reduce function definitions to Python
variables that have the same name as the built-in Python functions map()
and reduce(), since that will effectively remove the possibility of
using those built-ins in surrounding code.
2012-02-08 15:17:11 -08:00
Ross Lawley
4a3c594080 Removed depreciated bson aliases
Updated the docs also.  Changed some sphinx syntax that was throwing
warnings.

Refs PYTHON-304
2012-01-17 15:41:30 +00:00
behackett
bab8f9eb2c Minor doc fixes. 2011-12-06 17:51:28 -08:00
behackett
6b0f7db050 Updated replica set examples doc. 2011-12-06 17:06:05 -08:00
behackett
205279ba93 Support the replicaSet URI parameter.
Also adds support for the keyword argument replicaset.
Either option can be used to force Connection to connect
using replica set mode if only one host:port pair is
specified.
2011-07-25 17:27:08 -07:00
behackett
fccd213a2c A few doctest fixes. 2011-07-22 14:11:42 -07:00
behackett
1dbc90d07b Updated map reduce examples. 2011-07-22 13:43:34 -07:00
behackett
21ceea4ab9 Add a geoNear example. 2011-07-22 10:07:54 -07:00