Commit Graph

166 Commits

Author SHA1 Message Date
Park Hyunwoo
baf53bee2d Add optional parameter for pymongo.database.collection_names to ignore system collections 2013-08-16 09:47:21 -07:00
Bernie Hackett
9307c1d56c Support MONGODB-X509 PYTHON-535 2013-07-25 16:02:07 -07:00
behackett
95c9731d66 Clean up Database.authenticate docs PYTHON-534
This change removes the commentary about the admin
database since it no longer applies when using role
based authentication in MongoDB 2.4 and newer.
Consult the MongoDB manual for details.
2013-06-20 12:16:55 -07:00
behackett
ae6aa79ae6 Support gssapiServiceName PYTHON-524
This also adds general support for authentication
mechanism specific options and validation.
2013-06-20 10:53:23 -07:00
behackett
39943aa62a Support the SASL PLAIN mechanism PYTHON-519
This is initially for LDAP authentication support in
MongoDB 2.6 (forthcoming). Warning: the username and
password are sent over the wire in clear text per
RFC 4616. SSL with cert validation should be used in
conjunction with the PLAIN mechanism to encrypt the
channel.
2013-06-12 13:30:54 -07:00
A. Jesse Jiryu Davis
0041d6bfe9 Clarify network_timeout and commands PYTHON-495 2013-06-03 23:47:18 -04:00
Bernie Hackett
fedf3a6feb Link to privilege documentation in add_user. 2013-03-22 08:11:20 -07:00
Bernie Hackett
1ed7718ad1 Don't mask authentication failure details.
These changes should make it easier to debug
kerberos configuration issues on the client
and server.
2013-03-22 07:56:15 -07:00
behackett
6a5a8b95ac Support MongoDB 2.4 options in add_user. 2013-03-21 15:51:47 -07:00
behackett
6b3f861df1 Remove obsolete comments about collection size limits. 2013-03-13 17:08:38 -07:00
Ross Lawley
cf9dca6970 Documentation clarifications PYTHON-486 / PYTHON-487 2013-03-13 15:11:16 +00:00
behackett
f09e38879d MONGO-CR -> MONGODB-CR (spec change) 2013-02-15 16:06:38 -08:00
behackett
8de9051228 Remove MongoAuthenticationMechanism PYTHON-465
The spec changed - MongoAuthenticationMechanism is
no longer required.
2013-02-12 14:30:11 -08:00
behackett
13d8aba2ac Remove $external from the public API PYTHON-465 2013-02-11 19:31:26 -08:00
A. Jesse Jiryu Davis
20a706fddd Finish updating docstrings with Connection -> MongoClient PYTHON-452 2013-02-10 10:56:46 -05:00
behackett
18d20ed181 Support GSSAPI (Kerberos) authentication PYTHON-465
This only works with the subscriber addition of MongoDB
>= 2.4 and requires the python "kerberos" module, sometimes
referred to as pykerberos.

http://pypi.python.org/pypi/kerberos

This change also adds support for the authMechanism
and authSource URI options.
2013-02-08 16:04:53 -08:00
behackett
41254542d9 Auth refactor to prepare for PYTHON-465.
This also addresses PYTHON-464 and makes
logout sane.
2013-01-31 18:05:51 -08:00
A. Jesse Jiryu Davis
7e3f1425d6 Minor docstring improvements 2013-01-22 10:14:12 -05:00
Ross Lawley
29b9de45db Added __ne__ for DBRefs PYTHON-440 2012-11-22 11:12:36 +00:00
behackett
139459beb9 Replace safe with w in internal methods PYTHON-437 2012-11-19 16:29:15 -08:00
behackett
8dd2670182 New write concern API PYTHON-427
This change deprecates get|set|unset_lasterror_options,
replacing them with a write_concern attribute that can be
accessed directly. See the write_concern docstring for
an example of its use.
2012-11-06 14:44:46 -08:00
A. Jesse Jiryu Davis
07fd010509 Fix set_profiling_level docstring 2012-11-04 21:54:05 -05:00
behackett
0c2c070165 Minor docstring fix. 2012-11-01 15:29:05 -07:00
Ross Lawley
4a3279c10a Add slow_ms as an option to set_profiling_level PYTHON-405 2012-10-25 13:36:50 +00:00
Ross Lawley
8637cfbe27 Adding first user from localhost works but raises OperationFailure - PYTHON-407 2012-10-05 15:04:56 +00:00
Ross Lawley
8afa98dd55 Don't wrap query spec when querying $cmd - PYTHON-403
Don't include $readPreferences when querying $cmd unless
the command is ok to be sent to a secondary
2012-10-03 07:44:13 +00:00
behackett
03593d512c Allow auth with RSC during failover PYTHON-388 2012-08-13 10:11:03 -07:00
behackett
42028cb663 Minor doc updates and changelog for 2.3. 2012-07-31 15:29:21 -07:00
Ross Lawley
2d5ddcef4a Minor read pref updates
Add read prefs to aggregate method
Pop all extra read pref kwargs
2012-07-30 10:14:47 +01: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
Bernie Hackett
41050fc269 Minor doc updates for 2.2 2012-04-20 17:32:15 -07:00
behackett
0ee7170cc2 It's 2012... 2012-04-19 12:40:38 -07:00
Bernie Hackett
b3e7054107 Disallow NULL in database names PYTHON-342 2012-04-18 08:36:34 -07:00
behackett
0bfefa500e Eliminate _is_command PYTHON-341 2012-04-12 15:03:56 -07:00
behackett
59deb6126e Minor fix for previous commit. 2012-04-06 14:24:55 -07:00
Bernie Hackett
63785530a9 Merge pull request #118 from mpobrien/master
Allow option to db.current_op() to include idle connections PYTHON-340
2012-04-06 14:20:37 -07:00
Mike O'Brien
4f3fb62da6 better param name for including idle connections 2012-04-06 17:07:16 -04:00
Mike O'Brien
a16932da47 add include_idle option to db.current_op() PYTHON-340 2012-04-02 11:24:03 -04:00
Bernie Hackett
0f81ce1bbd Python 3 pymongo package changes PYTHON-84 2012-03-23 07:52:27 -07:00
Ross Lawley
12d628b620 PYTHON-328 - Added support as_class in find_and_modify 2012-03-22 11:59:56 +00:00
A. Jesse Jiryu Davis
98ac3d364b Fix bug: database authenticate() always ended request. Code and commentary cleanup. PYTHON-287 PYTHON-296 2012-03-14 17:12:12 -04:00
A. Jesse Jiryu Davis
34538c155e Make auto_start_request optional (default True), add ReplicaSetConnection.start_request, return sockets to pool when threads die PYTHON-287
Big change to PyMongo connection pooling:

* While we still allocate a socket per thread by default, this is now optional. It is also possible to share sockets among threads, safely, and thus using fewer total sockets, by creating a Connection or ReplicaSetConnection with auto_start_request=False.

* In the past, when a thread died without calling end_request() its socket was closed. We now reclaim such sockets for the pool, which should reduce connection churn.

* start_request() now returns a context manager so you can do "with connection.start_request():"

* ReplicaSetConnection now supports start_request, although its semantics aren't consistent for ReadPreferences other than PRIMARY

* Refactoring: Connection and ReplicaSetConnection had different pool implementations, now they share one.
2012-03-14 17:12:11 -04:00
Ross Lawley
935435b658 Updated versionchanged 2012-02-08 15:58:09 -08:00
Ross Lawley
2b71087d03 Deprecated options kwarg 2012-02-08 15:58:09 -08:00
Ross Lawley
0b5b3cb48c Added versionchanged docs to add_user 2012-01-25 16:12:19 -08:00
Ross Lawley
ef67b40fae Added read_only support to add_user
PYTHON-312
2012-01-25 16:12:18 -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
Bernie Hackett
5133b0f68b Default to OLD_UUID_SUBTYPE in commands PYTHON-303 2011-12-17 18:07:50 -08:00
Bernie Hackett
0389607663 Force correct read pref in db.command PYTHON-302 2011-12-17 17:33:55 -08:00
Bernie Hackett
bcb4452bb4 Fix string format issue PYTHON-289 2011-11-10 21:02:48 -08:00