Mike Dirolf
c3808a65e7
BUMP 1.8.1 - see changelog for details
2010-08-13 10:47:34 -04:00
jbergstroem
3c7b0f39a8
typo
2010-08-11 03:59:37 +08:00
Mike Dirolf
a96b838a78
add a __ne__ implementation wherever we define __eq__
2010-08-10 15:53:48 -04:00
jbergstroem
ec22172030
s/failIf/assertFalse
2010-08-11 03:44:06 +08:00
Mike Dirolf
529c4897f5
raise AutoReconnect when getLastError gives not master
2010-08-05 11:04:27 -04:00
Mike Dirolf
263a5abe45
version -> +
2010-08-05 10:19:48 -04:00
Mike Dirolf
a3a8cf2d79
BUMP 1.8 - see changelog for details
2010-08-05 10:04:37 -04:00
Mike Dirolf
7a79560f5f
better auto-reconnect test helper
2010-08-05 09:35:04 -04:00
Mike Dirolf
0169f3c86e
add Andrew to contributors
2010-08-03 14:05:52 -04:00
sibsibsib
f3da57be96
Fixed reference leak in C bson module when using DBRefs
2010-08-04 02:03:22 +08:00
Mike Dirolf
eafe0062d5
skip test for old server versions
2010-08-03 13:57:26 -04:00
Mike Dirolf
159ebcc62d
support for w, wtimeout, fsync, and any future getlasterror options
2010-08-03 11:24:24 -04:00
Mike Dirolf
6fca332655
docs for new w/wtimeout/fsync support
2010-08-02 15:25:08 -04:00
Mike Dirolf
057a1ebe61
make test more lenient, there's a race condition that we don't care about
2010-07-30 14:07:24 -04:00
Mike Dirolf
6150f39629
test and doc for Connection.nodes
2010-07-30 13:36:43 -04:00
Mike Dirolf
10ff960a65
add Connection.nodes property to list all known nodes
2010-07-30 13:31:01 -04:00
Mike Dirolf
dea373fea3
test that already passes
2010-07-29 12:53:56 -04:00
Mike Dirolf
45fc69df35
use default port for _str_to_node PYTHON-147
2010-07-28 10:22:19 -04:00
Mike Dirolf
7a2b5259da
Pool -> _Pool
2010-07-27 16:36:12 -04:00
Mike Dirolf
a264d75483
towards pep8
2010-07-22 11:38:22 -04:00
Mike Dirolf
ebf39f7d62
use module level functions instead of staticmethods
2010-07-22 11:23:29 -04:00
Mike Dirolf
69fa495e5a
convert replSet host strs to node tuples
2010-07-22 11:09:22 -04:00
Mike Dirolf
9b8b714377
fix bug in python bson decoder for as_class with embedded lists
2010-07-21 15:12:12 -04:00
Mike Dirolf
8bb0db507e
cap connection pool size at 10 open sockets PYTHON-144
2010-07-21 14:51:19 -04:00
Mike Dirolf
e30186a5cc
removing code that became dead as a result of connection changes
2010-07-21 13:11:25 -04:00
Mike Dirolf
5dad1a64ad
revert case change that broke connections to old versions of mongod
2010-07-21 11:22:44 -04:00
Mike Dirolf
363695345d
change tz_aware=False to be the default, so we're backwards compatible
2010-07-21 10:49:35 -04:00
Mike Dirolf
a8bb1038e6
docs, deprecate Connection.from_host and Connection.paired (use __init__ instead)
2010-07-15 14:18:33 -04:00
Mike Dirolf
96c5b3c410
tweak tutorial to be consistent w/ new datetime handling
2010-07-15 12:25:01 -04:00
Mike Dirolf
0726f21543
Rework connection handling, and add support for replSets
2010-07-15 11:58:10 -04:00
Mike Dirolf
60a2d52caa
store nodes in a set instead of a list
2010-07-15 11:58:10 -04:00
Mike Dirolf
b2db417b89
add getting help section to docs
2010-07-15 10:32:58 -04:00
Mike Dirolf
0110cd66cf
replace paired logic w/ a call to __init__
2010-07-12 11:26:03 -04:00
Mike Dirolf
9307c3d011
More flexible host parameter for Connection.
...
Can take a MongoDB URI (replaces Connection.from_uri) or a list of
hosts/URIs. In preparation for supporting replsets.
2010-07-12 11:24:46 -04:00
Mike Dirolf
1d655608c6
use network_timeout instead of _CONNECT_TIMEOUT, if it's specified PYTHON-139
2010-07-06 10:43:17 -04:00
Mike Dirolf
58335bb16e
fix test
2010-06-29 15:26:23 -04:00
Mike Dirolf
2a37d25827
Use timezone aware datetimes in Timestamp and json_util.
...
These are the last two places that aren't properly using/handling
timezone_aware datetime instances. This is a BREAKING change,
depending on how an application is using the datetime instances
returned.
2010-06-29 10:30:00 -04:00
Mike Dirolf
f73c9f1162
doc
2010-06-29 10:18:16 -04:00
Mike Dirolf
c25e5c4bd3
better (tz aware) datetime handling for ObjectId methods (possibly BREAKING)
2010-06-29 10:18:05 -04:00
Mike Dirolf
1cc6b70760
don't use property.setter, which is 2.6 only
2010-06-29 09:44:57 -04:00
Mike Dirolf
2d8c93940f
Adding a drop() helper on Collection instances PYTHON-126
2010-06-28 17:55:51 -04:00
Mike Dirolf
8c8e56ffb7
Add the socket used in __find_master to the pool if we find the master PYTHON-131
2010-06-28 17:34:05 -04:00
Mike Dirolf
491c06a59a
Add tz_aware option to Connection() PYTHON-125
...
Defaults to True, which is the new behavior. For full backwards
compatibility, set tz_aware to False.
2010-06-28 17:03:41 -04:00
Mike Dirolf
d8c4b3d6b1
doc
2010-06-28 10:22:46 -04:00
Kristina Chodorow
e92eb400a1
add json serialization/deserialization for MinKey, MaxKey, and Timestamp
2010-06-28 22:17:20 +08:00
Mike Dirolf
ad4ecbd024
make the bson decoder optionally decode datetimes as naive PYTHON-125
2010-06-23 16:45:08 -04:00
Mike Dirolf
8327335733
Decode datetime instances as UTC/aware PYTHON-125
...
The C implementation of this is *very* ugly, but might be as good as
we can get. Any improvements/suggestions are appreciated.
This is a BREAKING change if application code was depending on
datetimes being naive (i.e. comparisons and subtractions between aware
and naive datetimes are not supported by Python), but most apps
*probably* aren't. We might need to change this somehow before the
next release...
2010-06-22 17:52:55 -04:00
Mike Dirolf
dc44f54a53
exists indexing note
2010-06-22 16:19:44 -04:00
Mike Dirolf
30c253e6d4
fix for dbref extra param decoding on python < 2.6
2010-06-22 12:29:20 -04:00
Mike Dirolf
2cf37f77a0
add network_timeout option for individual calls to find/find_one - overrides Connection default PYTHON-127
2010-06-22 11:44:55 -04:00