Commit Graph

894 Commits

Author SHA1 Message Date
Mike Dirolf
80537456c3 BUMP 1.4 - see changelog for details 2010-01-27 12:07:42 -05:00
Mike Dirolf
103bd3faf3 just move _id for all top level docs, don't differentiate by operation 2010-01-27 11:20:23 -05:00
Mike Dirolf
2716395d2f return the entire response to lastError for update/remove if safe is True PYTHON-87 2010-01-26 17:11:48 -05:00
Mike Dirolf
3b733b90a9 minor: more doc cleanups 2010-01-26 16:59:11 -05:00
Mike Dirolf
d41cb5ceef minor: doc 2010-01-26 16:48:11 -05:00
Mike Dirolf
580c8f256a minor: clean up and docs for gridfs 2010-01-26 16:40:02 -05:00
Mike Dirolf
d80de9cb13 minor: remove all uses of types module 2010-01-26 13:31:36 -05:00
Mike Dirolf
2aa45d1307 minor: cleanup, doc 2010-01-26 12:16:41 -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
f2462b4a72 only move _id to front for root documents, and only for inserts or second arg to update PYTHON-92 2010-01-26 11:36:00 -05:00
Mike Dirolf
410480b94c return number of updated/removed documents if safe is True PYTHON-87 2010-01-25 16:45:12 -05:00
Mike Dirolf
dff8e49928 add package level teardown to clean up after test runs 2010-01-21 13:38:36 -05:00
Mike Dirolf
69596517ac minor: be sure these processes finish their work 2010-01-20 09:52:18 -05:00
Mike Dirolf
a26138f4c8 collection names must not contain the null character 2010-01-19 11:37:05 -05:00
Mike Dirolf
5a370ff614 allow utf-8 collection names w/ C extension 2010-01-19 11:34:18 -05:00
Mike Dirolf
33de6b8d0d minor: PEP-8 2010-01-12 17:10:10 -05:00
Mike Dirolf
2307a7852b minor: doc 2010-01-12 16:52:08 -05:00
Mike Dirolf
c8e64f4c02 Use PyMongoError instead of BaseMongoDBException
Note that this is changing the exception hierarchy somewhat as well,
as I would rather not muck things up with multiple inheritance. This
is a breaking change if you depend on ConnectionFailure being an
IOError or InvalidBSON being a ValueError, for example. If this
creates issues for anybody please let us know and we can figure out a
better workaround.

Also add Michael to contributors list.
2010-01-12 16:47:50 -05:00
Michael Schurter
8e50ffb272 Added base exception class to all MongoDB exceptions 2010-01-13 05:37:06 +08:00
Mike Dirolf
ad07b2e004 minor: more versioning 2010-01-12 15:41:31 -05:00
Mike Dirolf
aadf642fc0 minor: version info 2010-01-12 15:33:43 -05:00
Mike Dirolf
dd5237c113 adding DuplicateKeyError for safe inserts/updates 2010-01-12 12:29:33 -05:00
Mike Dirolf
e3fd6e362e minor: doc 2010-01-11 11:16:09 -05:00
Mike Dirolf
0fe4b29197 remove thread_util 2010-01-08 17:38:46 -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
e1e5252e6d updates for MasterSlaveConnection 2010-01-08 16:53:05 -05:00
Mike Dirolf
244ada075f minor: update deprecated api 2010-01-08 16:40:05 -05:00
Mike Dirolf
30d1277b14 clean up ConnectionFailure cases 2010-01-08 16:32:45 -05:00
Mike Dirolf
4a8f1db2f9 update README - no longer supporting Python 2.3 2010-01-08 15:14:00 -05:00
Mike Dirolf
826fb0d4db Simplification of connection pooling.
Makes driver ~2x faster for simple benchmarks.

DEPRECATED pool_size, auto_start_request and timeout parameters to Connection
DEPRECATED Connection.start_request

Each thread now gets it's own socket reserved on it's first operation. Those
sockets are held until Connection.end_request is called by that thread, or
Connection.disconnect is called by any thread, or the thread dies.

Calling Connection.end_request allows the socket to be returned to the pool,
and to be used by other threads instead of creating a new socket. Judicious use
of this method is important for applications with many threads or with long
running threads that make few calls to PyMongo operations.
2010-01-08 15:13:50 -05:00
Mike Dirolf
d11ec963cb use sendall 2010-01-07 15:31:47 -05:00
Mike Dirolf
66fb6724df minor: remove validate from MANIFEST 2010-01-05 14:35:53 -05:00
Mike Dirolf
54be5db873 removing all support for mongo-qa tests
allows us to remove SON.from_xml
  - not deprecating this as it was used internally only AFAIK

therefore eliminates driver dependency on elementtree
2010-01-05 14:20:12 -05:00
Mike Dirolf
9529271690 implementation of update message in C, based on original implementation by gregg lind. simple updates are ~40% faster 2010-01-05 11:57:53 -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
0eee221ac9 send commands w/o wrapping as {query: ...} PYTHON-80 2009-12-29 14:03:07 -05:00
Mike Dirolf
40311d9606 adding mango to django FAQ / tools list. trying to bring some sanity to tools list w/o kicking any projects out 2009-12-29 12:28:41 -05:00
Mike Dirolf
a9810bffe2 minor: broken test 2009-12-18 13:21:29 -05:00
Mike Dirolf
70ad67bd5e support keyf if key is a string and not a list. all groups are run as commands now 2009-12-18 13:09:12 -05:00
Mike Dirolf
ede71e6b9a minor: don't use types module here 2009-12-18 13:07:46 -05:00
Mike Dirolf
b690b0e350 code supports equality testing and instantiation from existing Code instances 2009-12-18 11:50:53 -05:00
Mike Dirolf
c27644c4e9 minor: todo no longer valid 2009-12-18 11:20:08 -05:00
Mike Dirolf
796198318a NULL bytes allowed in strings and disallowed in key names / regex patterns 2009-12-17 14:08:52 -05:00
Harry Marr
c64f03b3af Added MongoEngine to tools page of docs 2009-12-18 02:24:04 +08:00
Mike Dirolf
48d1f592b3 version -> + 2009-12-16 11:37:55 -05:00
Mike Dirolf
3469911b69 minor: don't actually care what this returns 2009-12-16 11:37:07 -05:00
Mike Dirolf
afab7f6dc3 BUMP 1.3 see changelog 2009-12-16 11:29:10 -05:00
Mike Dirolf
e7a6ed98a7 adding Connection.disconnect() PYTHON-79 2009-12-16 10:48:13 -05:00