marcelnicolay / mongotor

An asynchronous driver and toolkit for accessing MongoDB in Tornado
Other
57 stars 16 forks source link

Some changes in the orm #18

Closed Eossu closed 12 years ago

Eossu commented 12 years ago

Added some fields and changed some code for validation of fields. Also child classes did not get fields from the base classes when getting the dict. Changed a little for that. Not sure if it is the best way but can look into that. Maybe call Collection for Document instead?

With tests.

When i ran the test i got Errno 111 instead of 61 when testing for connect refused.

Have not put my self totally into the mongo yet but will work on it if help is wanted.

marcelnicolay commented 12 years ago

your validation code works very well. I fixed the message 'connection refused' in tests to work with different mongodb versions.

thanks...