A. Jesse Jiryu Davis
fb207af4cf
PYTHON-712 ObjectId.is_valid(None) should be False.
2014-06-18 16:19:58 -04:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
Bernie Hackett
add8d4fd6a
More warnings cleanup.
2013-10-31 12:04:21 -07:00
A. Jesse Jiryu Davis
f1f7b14bf6
Allow MongoClients to be GC'ed after test runs.
...
Work around http://bugs.python.org/issue11798 to reduce max connection count during tests.
2013-08-27 09:00:50 -04:00
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00:00
behackett
da832dc1b8
Fix a skiptest message.
2012-10-24 18:22:32 -07:00
A. Jesse Jiryu Davis
461e2529f7
Informative message whenever skipping a test
2012-08-21 23:24:47 -04:00
Ross Lawley
f2ea613400
Added is_valid classmethod to ObjectId
...
Refs PYTHON-360
2012-07-10 16:09:01 +01:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
behackett
12592be1fe
Python 3 unittest changes PYTHON-84.
2012-03-28 11:53:47 -07:00
behackett
2d21ba9376
Replace deprecated unittest assert method aliases.
...
assert_ -> assertTrue
assertEquals -> assertEqual
This is needed to clean up deprecation warnings
in python >= 3.2
2012-03-16 17:20:21 -07:00
Bernie Hackett
98a6b991c3
Fix or skip broken tests in Jython and PyPy.
...
See comments in the commit for details.
2012-03-15 21:49:39 -07:00
Ross Lawley
486c3ce24a
PYTHON-318 - Fix for SON pickling protocol 2
...
Updated tests to check protocol pickling as well
2012-02-08 14:59:33 -08:00
behackett
2ed05bec70
PEP8 cleanups.
2011-04-06 14:57:17 -07:00
behackett
9f9b4a6666
Fix loading of OIDs pickled in 1.9.
...
Credit goes to Steve Lacy <slacy@slacy.com>
for developing the fix and test.
2011-04-04 20:43:23 -07:00
Richard Shea
f202c535d5
change ObjectId __getstate__ and __setstate__ to just use __id also added unit test for pickling/unpickling ObjectId
2011-04-02 11:10:26 -07:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -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
1a051df81d
from_datetime for objectids PYTHON-112
2010-03-31 17:01:58 -04:00
Mike Dirolf
3d7240e57f
It's 2010!
2010-01-30 10:48:26 -05:00
Mike Dirolf
a7e0e59ee0
minor: complete removal of some things that were deprecated in version <= 1.2
2010-01-26 11:54:39 -05:00
Mike Dirolf
69596517ac
minor: be sure these processes finish their work
2010-01-20 09:52:18 -05:00
Mike Dirolf
fb53f85fe8
allow unicode for ObjectId init. raise InvalidId (instead of TypeError) for non-hex on init.
2009-12-10 15:45:14 -05:00
Mike Dirolf
143e649aca
DEPRECATING ObjectId.url_encode and ObjectId.url_decode - use str() and ObjectId(), respectively. Also completely removing the ObjectId legacy stuff as I don't think anybody is using this. Improve ObjectId docs
2009-12-04 10:14:39 -05:00
Mike Dirolf
b35cec3db5
add generation_time property to ObjectId instances
2009-12-03 17:12:38 -05:00
Mike Dirolf
e7fbbbcf1c
skip multiprocessing tests on windows
2009-10-13 17:14:21 -04:00
Mike Dirolf
ec2b9640ca
failing test for objectid w/ multiprocessing
2009-10-13 09:58:22 -04:00
Mike Dirolf
721a763ba9
minor: doc, credits
2009-08-28 13:51:24 -04:00
Joakim Sernbrant
8e507816ad
* ObjectId: changed str and repr to hex
...
* ObjectId: can now take a hex string in the constructor
Signed-off-by: Mike Dirolf <mike@10gen.com>
2009-08-28 13:49:56 -04:00
Mike Dirolf
3eff3a6765
add legacy conversions for ObjectId
2009-08-25 17:01:08 -04:00
Mike Dirolf
90beef7b20
minor: more PEP 8
2009-06-05 16:54:02 -04:00
Mike Dirolf
7bbb4a5133
python 2.3 support
...
mostly not using unittest.assertTrue and assertFalse.
also not using decorator syntax, and some missing built-ins (sorted, etc.)
2009-02-20 14:35:21 -05:00
Mike Dirolf
db25c8b0dd
url_encode and url_decode for ObjectIds
2009-02-18 14:46:09 -05:00
Mike Dirolf
dab986f3da
change sys.path unconditionally to work around people who have the egg installed
2009-01-28 15:32:42 -05:00
Mike Dirolf
eb5af47c57
don't append - insert at beginning
2009-01-28 15:09:24 -05:00
Mike Dirolf
ef63bbe81e
add '' to sys.path so test files can be run as python test/test_whatever.py
2009-01-28 14:44:35 -05:00
Mike Dirolf
84acf3b529
_id can be anything. this hasn't been well tested yet.
2009-01-23 17:34:27 -05:00
Mike Dirolf
88a62b0c3e
license
2009-01-22 15:10:00 -05:00
Mike Dirolf
d6c0ec39a3
create package pymongo and move all pymongo related modules there
2009-01-22 10:44:26 -05:00
Mike Dirolf
e25e0014e3
move objectid tests to test directory
2009-01-16 15:00:30 -05:00