Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Eve:列表类型字段上的积垢_Python_Eve - Fatal编程技术网

Python Eve:列表类型字段上的积垢

Python Eve:列表类型字段上的积垢,python,eve,Python,Eve,您好,对于从字典列表字段中读取/添加/修改/删除项目,是否有解决方法?我知道Eve目前不支持它,所以这里有什么建议吗 更具体地说,这是我的模式 companies = { 'employees': { 'type': 'list', 'schema': { 'type': 'dict', 'schema': { 'user': { 'ty

您好,对于从字典列表字段中读取/添加/修改/删除项目,是否有解决方法?我知道Eve目前不支持它,所以这里有什么建议吗

更具体地说,这是我的模式

companies = {
    'employees': {
        'type': 'list',
        'schema': {
            'type': 'dict',
            'schema': {
                'user': {
                    'type': 'objectid',
                    'required': True,
                    'data_relation': {
                        'resource': 'users',
                        'field': '_id',
                    },
                },
                'role': {
                    'type': 'objectid',
                    'required': True,
                    'data_relation': {
                        'resource': 'company_roles',
                        'field': '_id',
                    },
                },
            },
        },
    }
}
我希望能够对员工进行CRUD操作。有什么提示吗