At the moment MongodbAdapter only has these filetypes

class MongoDBAdapter(NoSQLAdapter):
    uploads_in_blob = True

    types = {
                'boolean': bool,
                'string': str,
                'text': str,
                'password': str,
                'blob': str,
                'upload': str,
                'integer': long,
                'bigint': long,
                'float': float,
                'double': float,
                'date': datetime.date,
                'time': datetime.time,
                'datetime': datetime.datetime,
                'id': long,
                'reference': long,
                'list:string': list,
                'list:integer': list,
                'list:reference': list,
        }


Which means that if you want to insert or manage this:

{
    "field1": "super",
    "field2": 300,
    "field3": ["one", "two", "three"],
    "field4" = {foo: "bar", michael: "jordan"}
}

You can't do it for *field4*

Most MongoDB Collections do make use of document/dict datatype so this 
should be possible!

Reply via email to