コード例 #1
0
ファイル: stark.py プロジェクト: stevenlee87/vue-official
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time     : 2020/5/18 23:00
# @File     : stark.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author    : Alex 007
# >>> QQ        : 2426671397
# >>> Mail      : [email protected]
# >>> Github    : https://github.com/koking0
# >>> Blog      : https://alex007.blog.csdn.net/
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
from Course import models
from Stark.main import starkSite

from Course.views.FreeCourse import FreeCourseHandler
from Course.views.PracticalCourse import PracticalCourseHandler
from Course.views.EmploymentCourse import EmploymentCourseHandler
from Course.views.Category import CategoryHandler

starkSite.register(models.FreeCourse, FreeCourseHandler)
starkSite.register(models.PracticalCourse, PracticalCourseHandler)
starkSite.register(models.EmploymentCourse, EmploymentCourseHandler)
starkSite.register(models.Category, CategoryHandler)
コード例 #2
0
# @Time     : 2020/4/3 10:57
# @File     : stark.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆ 
# >>> Author    : Alex
# >>> QQ        : 2426671397
# >>> Mail      : [email protected]
# >>> Github    : https://github.com/koking0
# >>> Blog      : https://blog.csdn.net/weixin_43336281
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
from RBAC import models
from Stark.main import starkSite

from RBAC.views.rbacUserinfo import RbacUserHandler
from RBAC.views.team import TeamHandler
from RBAC.views.department import DepartmentHandler
from RBAC.views.role import RoleHandler
from RBAC.views.permission import PermissionHandler
from RBAC.views.menu import MenuHandler
from RBAC.views.scoreRecord import ScoreRecordHandler
from RBAC.views.attendance import AttendanceHandler

starkSite.register(models.RbacUserInfo, RbacUserHandler)
starkSite.register(models.Team, TeamHandler)
starkSite.register(models.Department, DepartmentHandler)
starkSite.register(models.Role, RoleHandler)
starkSite.register(models.Permission, PermissionHandler)
starkSite.register(models.Menu, MenuHandler)
starkSite.register(models.ScoreRecord, ScoreRecordHandler)
starkSite.register(models.Attendance, AttendanceHandler)
コード例 #3
0
ファイル: stark.py プロジェクト: stevenlee87/vue-official
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time     : 2020/4/3 10:57
# @File     : stark.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆ 
# >>> Author    : Alex
# >>> QQ        : 2426671397
# >>> Mail      : [email protected]
# >>> Github    : https://github.com/koking0
# >>> Blog      : https://blog.csdn.net/weixin_43336281
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
from RBAC import models
from Stark.main import starkSite

from RBAC.views.rbacUserinfo import RbacUserHandler
from RBAC.views.department import DepartmentHandler
from RBAC.views.role import RoleHandler
from RBAC.views.permission import PermissionHandler
from RBAC.views.menu import MenuHandler

starkSite.register(models.RbacUserInfo, RbacUserHandler)
starkSite.register(models.Department, DepartmentHandler)
starkSite.register(models.Role, RoleHandler)
starkSite.register(models.Permission, PermissionHandler)
starkSite.register(models.Menu, MenuHandler)
コード例 #4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time     : 2020/5/18 23:00
# @File     : stark.py
# ----------------------------------------------
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
# >>> Author    : Alex 007
# >>> QQ        : 2426671397
# >>> Mail      : [email protected]
# >>> Github    : https://github.com/koking0
# >>> Blog      : https://alex007.blog.csdn.net/
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
from Account import models
from Stark.main import starkSite

from Account.views.Account import AccountHandler
from Account.views.Student import StudentHandler
from Account.views.Teacher import TeacherHandler
from Account.views.Manager import ManagerHandler

starkSite.register(models.Account, AccountHandler)
starkSite.register(models.Student, StudentHandler)
starkSite.register(models.Teacher, TeacherHandler)
starkSite.register(models.Manager, ManagerHandler)
コード例 #5
0
# >>> Mail      : [email protected]
# >>> Github    : https://github.com/koking0
# >>> Blog      : https://blog.csdn.net/weixin_43336281
# ☆ ☆ ☆ ☆ ☆ ☆ ☆
from index import models
from Stark.main import starkSite

from index.views.user import UserHandler
from index.views.course import CourseHandler
from index.views.classes import ClassesHandler
from index.views.student import StudentHandler
from index.views.task import TaskHandler
from index.views.studentTask import StudentTaskHandler
from index.views.project import ProjectHandler
from index.views.publicProject import PublicProjectHandler
from index.views.privateProject import PrivateProjectHandler
from index.views.projectRecord import ProjectRecordHandler
from index.views.paymentRecord import PaymentRecordHandler

starkSite.register(models.User, UserHandler)
starkSite.register(models.Course, CourseHandler)
starkSite.register(models.Classes, ClassesHandler)
starkSite.register(models.Student, StudentHandler)
starkSite.register(models.Project, ProjectHandler)
starkSite.register(models.Project, PublicProjectHandler, "public")
starkSite.register(models.Project, PrivateProjectHandler, "private")
starkSite.register(models.ProjectRecord, ProjectRecordHandler)
starkSite.register(models.PaymentRecord, PaymentRecordHandler)
starkSite.register(models.Task, TaskHandler)
starkSite.register(models.Task, StudentTaskHandler, "student")