Commit Graph

6592 Commits

Author SHA1 Message Date
Mike Dirolf
c45a1c9177 allow SON too 2009-01-08 16:28:50 -05:00
Mike Dirolf
b80660aebf oops 2009-01-08 16:22:46 -05:00
Mike Dirolf
cc030c54b3 add son tests to test script 2009-01-08 16:13:43 -05:00
Mike Dirolf
fcdedb47b6 doc 2009-01-08 16:12:15 -05:00
Mike Dirolf
bd49bf5020 add SON datatype - basically an subclass of dict that maintains order 2009-01-08 16:11:46 -05:00
Mike Dirolf
1c17488d4c seperate out __connect so we can reconnect on timeouts 2009-01-08 14:47:04 -05:00
Mike Dirolf
5ff12097e6 make sure host name is a string. store host and port. __repr__ 2009-01-08 14:44:00 -05:00
Mike Dirolf
91ba6510f1 add client tests to test script 2009-01-08 14:33:37 -05:00
Mike Dirolf
3e343f7b23 starting actual client. just connect for now 2009-01-08 14:33:10 -05:00
Mike Dirolf
289f87353a tool to run all of the python driver tests at once 2009-01-08 12:48:44 -05:00
Mike Dirolf
1b75ecd048 bson support for dbref 2009-01-08 12:02:59 -05:00
Mike Dirolf
89857be26d implementation of a DBRef type 2009-01-08 11:40:05 -05:00
Mike Dirolf
c2ada2f010 bson support for oid 2009-01-08 11:09:41 -05:00
Mike Dirolf
318549abdd Implementation of ObjectId (for now just generate 12 random bytes) 2009-01-08 10:53:38 -05:00
Mike Dirolf
65a99b3616 validator for code_w_scope 2009-01-08 10:09:21 -05:00
Mike Dirolf
ac198c6cd5 if key is , (str, unicode) -> code 2009-01-08 09:56:02 -05:00
Mike Dirolf
d9b815ad0d symbol -> unicode 2009-01-08 09:36:22 -05:00
Mike Dirolf
fe4dcd1113 cleanup a bunch of debugging stuff from last night. add some logging messages. the problem i was debugging is a CPython issue for testing regex equality 2009-01-08 09:25:41 -05:00
Mike Dirolf
6efb96a893 wip: still banging against weirdness w/ bson regexps 2009-01-07 19:52:58 -05:00
Mike Dirolf
3e6d3f3cbe support for dates 2009-01-07 17:10:00 -05:00
Mike Dirolf
bae7245652 test for strings and None 2009-01-07 14:18:50 -05:00
Mike Dirolf
7083df5254 (null, undefined) <=> None 2009-01-07 14:14:07 -05:00
Mike Dirolf
d2f67f549d support for python strings (as mongo binary type 2009-01-07 13:56:27 -05:00
Mike Dirolf
8ed0c63e86 random generator for mongo documents, test that to_dict o from_dict is identity. fix get_c_string to check for 0 bytes 2009-01-07 13:49:07 -05:00
Mike Dirolf
fa6b5a314d quick random testing module for python and some random tests for bson 2009-01-07 10:29:48 -05:00
Mike Dirolf
bfc782ccbe partial implementation of to_dict to match from_dict 2009-01-07 00:48:09 -05:00
Mike Dirolf
8832a2e392 a couple basic tests 2009-01-06 23:49:50 -05:00
Mike Dirolf
836c99bec5 from_dict w/ support for ints, floats, unicode, sub-dicts, lists, and booleans. more tests coming (i ported some tests from mlmongo but forgot that they would break because dicts aren't ordered) 2009-01-06 18:15:39 -05:00
Mike Dirolf
a4d0904c99 starting from_sequence 2009-01-06 16:32:11 -05:00
Mike Dirolf
8f5f9432e0 test some more valid BSON. fix a couple of bugs 2009-01-06 15:45:25 -05:00
Mike Dirolf
3d57e76cd4 add test directory w/ some test data we can use 2009-01-06 15:44:36 -05:00
Mike Dirolf
aed7541348 add empty __init__ 2009-01-06 15:43:31 -05:00
Mike Dirolf
d094b4b41f _validate_symbol 2009-01-06 14:30:09 -05:00
Mike Dirolf
58332e9ed6 implementations for most of the element type validators 2009-01-06 14:23:48 -05:00
Mike Dirolf
09e111232f towards BSON validator. use TypeError for type errors and InvalidBSON just for value errors 2009-01-06 14:08:42 -05:00
Mike Dirolf
95536e9d18 a little semblance of privacy 2009-01-06 12:20:20 -05:00
Mike Dirolf
be3f310b30 start validator 2009-01-06 12:12:51 -05:00
Mike Dirolf
57042594d0 gitignore 2009-01-06 10:40:56 -05:00
Mike Dirolf
1b7b0ec738 basic setup for BSON module, including some test code (that doesn't pass yet 2009-01-06 10:17:31 -05:00
Mike Dirolf
8502242973 initial commit 2009-01-06 10:16:45 -05:00
Mike Dirolf
16e3ee5f2c remove README.txt 2009-01-06 10:16:14 -05:00
yellow
b128ec2448 start 2009-01-06 15:10:29 +00:00