resource.py 453 B

12345678910111213
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from crud.base import CrudManager
  4. from models.resource import (WorkCategory, WorkResource, ExamCategory,
  5. ExamResource, ResourceCollectInfo)
  6. crud_work_category = CrudManager(WorkCategory)
  7. crud_work_resource = CrudManager(WorkResource)
  8. crud_exam_category = CrudManager(ExamCategory)
  9. crud_exam_resource = CrudManager(ExamResource)
  10. crud_collect = CrudManager(ResourceCollectInfo)