Commit Graph

260 Commits

Author SHA1 Message Date
behackett
ca02c09c33 Fix unittests broken due to server side changes. 2011-02-22 15:38:38 -08:00
Mike Dirolf
b0f9875c36 stop using InvalidName in bson package (replace with InvalidDocument) 2010-09-14 13:55:41 -04: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
bdc611e280 add list() to db.system_js helper PYTHON-151 2010-08-18 11:04:33 -04:00
jbergstroem
ec22172030 s/failIf/assertFalse 2010-08-11 03:44:06 +08:00
Mike Dirolf
2d8c93940f Adding a drop() helper on Collection instances PYTHON-126 2010-06-28 17:55:51 -04:00
Mike Dirolf
cf46feb79e timestamps need to use unsigned in bson encoder/decoder 2010-06-04 12:50:22 -04:00
Mike Dirolf
86a3b2ab5a clean up command response checking 2010-06-04 12:16:08 -04:00
Mike Dirolf
a8ef8fc2af accept any type for remove by _id, not just ObjectId 2010-05-24 10:51:55 -04:00
Mike Dirolf
b989e3e34d improvements to the db.command api 2010-03-19 16:17:59 -04:00
Mike Dirolf
5371b627bb remove use of deprecated options arg from tests 2010-03-10 11:45:02 -05:00
Mike Dirolf
2213f813cf Adding copy_database 2010-03-10 09:17:25 -05:00
Mike Dirolf
75935fef5c minor: enable test for 1.3.2- and up 2010-02-08 10:01:36 -05:00
Mike Dirolf
ff350c7609 allow commands specified as strings for simple cases 2010-02-04 13:54:07 -05:00
Mike Dirolf
a21b54a4dd Adding db.system_js - helper for dealing with server-side JS PYTHON-86.
Thanks Michael Schurter for idea and original implementation.
2010-02-04 11:46:05 -05:00
Mike Dirolf
3d7240e57f It's 2010! 2010-01-30 10:48:26 -05:00
Mike Dirolf
d80de9cb13 minor: remove all uses of types module 2010-01-26 13:31:36 -05:00
Mike Dirolf
cec5ef1cff cleanup add_user and remove_user helpers - PEP 8, doc tweaks, test in combo w/ authenticate 2010-01-08 17:32:26 -05:00
Gregg Lind
3cc426033a jira python-82: javascript db.{add,remove}User as python database.{add,remove}_user, with tests 2010-01-08 17:01:40 -05:00
Gregg Lind
76465238f2 jira python83: unicode names and passwords should be encoded as utf8, with test 2010-01-08 17:01:17 -05:00
Mike Dirolf
78c825b548 DEPRECATE db._command in favor of db.command, which is now part of the documented API 2010-01-04 10:34:43 -05:00
Mike Dirolf
99f08e541e DEPRECATING method style access for several methods:
Connection.host() and port(), Database.connection() and name(),
and Collection.database(), name() and full_name(). Use attribute/property
style access for all of these instead now.
2009-12-15 17:04:24 -05:00
Mike Dirolf
b4cb9be0d3 Add database support to DBRefs (as ) 2009-11-10 14:54:39 -05:00
Mike Dirolf
19d6cf40c6 complete deprecation of some things, and turn on a test that was waiting on SM being default 2009-09-16 11:04:27 -04:00
Mike Dirolf
2c6db39168 long support (not in extension yet) 2009-08-03 15:32:40 -04:00
Mike Dirolf
90beef7b20 minor: more PEP 8 2009-06-05 16:54:02 -04:00
Eliot Horowitz
a9787be342 change one test that only works with java 2009-05-08 16:57:17 -04:00
Mike Dirolf
6841005a7d adding last_status method to Database instances 2009-04-13 13:57:33 -04:00
Mike Dirolf
9eebac461e add a test for what marc has been trying to do 2009-03-17 13:18:08 -04:00
Mike Dirolf
7ddbdc5442 add basic auto-ref support 2009-03-17 13:04:50 -04:00
Mike Dirolf
943b9e1328 test dereferencing a non-objectid dbref 2009-03-17 11:00:07 -04:00
Mike Dirolf
5eda427cbc use code_w_scope instead of code for eval. change Code class to support scopes 2009-03-12 11:16:03 -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
6f29ed27d7 create a collection even if no options are passed to create_collection 2009-02-03 14:31:57 -05:00
Mike Dirolf
9ba81bac47 username:mongo:password 2009-01-30 15:23:12 -05:00
Mike Dirolf
e0fa517744 move constants to pymongo root. update docs. add documentation for the pymongo module itself. 2009-01-30 14:54:50 -05:00
Mike Dirolf
2a4fba7aa4 eval() 2009-01-30 12:22:13 -05:00
Mike Dirolf
114f2f2e7c use database pymongo_test instead of test for testing 2009-01-29 14:14:54 -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
6074ce79da move error checking to _command 2009-01-28 09:45:39 -05:00
Mike Dirolf
fe9e805c79 move dereferencing to database class 2009-01-26 13:21:00 -05:00
Mike Dirolf
8e7952ae6d _id goes first 2009-01-26 09:33:07 -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
94d51a6e39 authenticate() and logout() 2009-01-23 14:43:48 -05:00
Mike Dirolf
4180922a45 error(), previous_error() and reset_error_history() 2009-01-23 13:13:24 -05:00
Mike Dirolf
0955faca30 better error messages for iterating on connection, database 2009-01-23 10:05:59 -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
ea219cbaeb move limit, skip, count, and sort tests to test_cursor 2009-01-21 14:20:40 -05:00
Mike Dirolf
758d380080 create_collection 2009-01-21 12:59:13 -05:00
Mike Dirolf
a9070fcb32 move index tests to test_collection 2009-01-21 10:04:58 -05:00
Mike Dirolf
262435a37d no constant for this 2009-01-20 16:17:38 -05:00
Mike Dirolf
ec52fd8b2a profiling support 2009-01-20 16:05:39 -05:00
Mike Dirolf
ed1e0744d1 validate_collection. another test (and corresponding fix) for drop_collection. 2009-01-20 14:54:42 -05:00
Mike Dirolf
a550c3f1ae drop_collection() 2009-01-20 13:57:36 -05:00
Mike Dirolf
3f730e155b collection_names() 2009-01-20 13:39:01 -05:00
Mike Dirolf
50c5ac3201 copy a bunch of tests from the level 1 driver to the level 0 part 2009-01-20 11:12:08 -05:00
Mike Dirolf
3bc86c9bb4 seperate modules for collection, cursor, database 2009-01-16 15:48:47 -05:00