Open phipse opened 11 years ago
The length is not the problem. The bson code can't handle the datetime.date construct. Even if entry just contains one mapping from attributes to datetime.date it fails. I tested other cases (very long string, mapping to dicts) too, they all work. But as soon as datetime.date is inserted, it fails.
2013-04-04 13:35:34,002 DEBUG insert_feature() {'attributes': '2004-02-27'}
Mongodb FAQ: http://api.mongodb.org/python/1.7/faq.html#id13 Only datetime.datetime is possible.
Another problem is the type of the "value" field. it get's convertet to bson.BSON, which is not accepted by the database, too.
So right now it is working for me, please test it and close this if no errors occur.
I get this error on the very first try to insert an entry. If the 'entry' var in the summarist just contains the name, everything works. As there is no way to shorten the attributes, I would propose to cut down the name. But even without a 'name' the entry is too large.
-- OUTPUT