blackbrrr
348f7b5dfc
merged master, fixed 1 merge conflict
2010-02-14 17:23:38 -06:00
blackbrrr
d0ceb74a2e
removed unused fields and tests
2010-02-12 09:57:09 -06:00
Harry Marr
210e9e23af
Dereferencing of referenced documents within lists
2010-02-12 02:31:41 +00:00
blackbrrr
c4513f0286
merged master
2010-02-11 15:43:37 -06:00
Harry Marr
89f505bb13
Removed pool_size from connect, minor tidyup
2010-02-04 01:44:52 +00:00
Harry Marr
755deb3ffe
Added DictField
2010-02-03 01:22:25 +00:00
Harry Marr
0bbf3a3d76
Fixed EmbeddedDocument validation bug
2010-02-02 17:37:09 +00:00
Harry Marr
5cac52720c
Fixed querying on ReferenceFields using primary key
2010-01-27 15:57:11 +00:00
blackbrrr
5f84d6f8f8
added URLField, DecimalField, tests.
2010-01-14 11:32:28 -06:00
Harry Marr
4d695a3544
Added single and multifield uniqueness constraints
2010-01-08 12:04:11 +00:00
Harry Marr
af1d7ef664
Added BooleanField
2010-01-05 18:17:44 +00:00
Harry Marr
b01596c942
Made field validation lazier
2010-01-03 22:37:55 +00:00
Harry Marr
f687bad202
Accessing a missing field now returns None rather than raising an AttributeError
2009-12-24 17:10:36 +00:00
Harry Marr
0a64f42d5f
Renamed Document._id to id (still _id in DB)
...
Although MongoDB uses _id, underscore prefixed attributes imply
private access in Python and are sometimes may not be accessed
(e.g. in the Django template language), but id should be public.
2009-12-18 16:31:32 +00:00
Harry Marr
d46191159e
Added DateTimeField and FloatField
2009-11-23 18:03:10 +00:00
Harry Marr
70ee0f57ea
Added Document.drop_collection, cleaned up tests
2009-11-21 20:32:29 +00:00
Harry Marr
3017dc78ed
Renamed project to mongoengine
2009-11-21 18:41:10 +00:00
Harry Marr
5fa01d89a5
Fixed ListField bug, added ReferenceField + tests
2009-11-21 18:15:47 +00:00
Harry Marr
5fcb5aba7c
Added ListField type with unit tests
2009-11-19 16:58:25 +00:00
Harry Marr
8ec6fecd23
Added basic querying - find and find_one
2009-11-19 01:09:58 +00:00
Harry Marr
94be32b387
Created ObjectIdField, removed object_id field parameter
2009-11-18 21:38:41 +00:00
Harry Marr
ff5e5addf5
Merge branch 'master' of git@hmarr.com:mongomap
2009-11-18 19:09:27 +00:00
Harry Marr
c99f5c4ec1
Added CollectionManager, made connection module
...
All connection-related functions are now in connection.py.
Created a ConnectionManager class for interacting with a collection
in the database. Top-level document classes have an instance of
a ConnectionManager (Document.collection).
Defined a 'save' method on top-level document's that uses the collection
manager's '_save_document' method to save the document to the database.
Added tests for CollectionManagers -- all unit tests now require a valid
connection to the database, which is set up in the tests' setUp method.
2009-11-18 19:02:57 +00:00
Harry Marr
2674d27587
Fixed bug in BaseDocument __init__
2009-11-18 12:53:45 +00:00
Harry Marr
5a87534c22
Got EmbeddedDocumentFields working
...
Added validation on EmbeddedDocumentField, added tests for
EmbeddedDocumentFields.
2009-11-17 01:32:40 +00:00
Harry Marr
48418d5a60
Added required fields, StringFields may be '_id's
...
Included tests for required fields (checks primary key is required
as well).
Switched from using SuperClass.__init__ to super().
Added constructor for EmbeddedDocumentField.
2009-11-17 01:12:52 +00:00
Harry Marr
00d897d29a
Added dictionary-style access to documents
...
Added __init__.py info to package, moved TopLevelDocumentMetaclass
to base.py, added tests for dictionary-style access.
2009-11-16 22:49:37 +00:00
Harry Marr
af38a92ec9
Initial commit
2009-11-15 15:53:42 +00:00