#!/usr/bin/env python # -*- coding: utf-8 -*- from crud.base import CrudManager from models.resource import WorkCategory, WorkResource, ExamCategory, ExamResource, ResourceCollectInfo crud_work_category = CrudManager(WorkCategory) crud_work_resource = CrudManager(WorkResource) crud_exam_category = CrudManager(ExamCategory) crud_exam_resource = CrudManager(ExamResource) crud_collection = CrudManager(ResourceCollectInfo) CATEGORY_CRUDS = {"work": crud_work_category, "exam": crud_exam_category} RESOURCE_CRUDS = {"work": crud_work_resource, "exam": crud_exam_resource}