dm.load_funcs module¶
- dm.load_funcs.create_org(name, user, otype, **defaults)[源代码]¶
create organization locally, but why not call get_or_create?
- dm.load_funcs.create_org_account(name, oid, otype, rand_pw=False, reset_pw=None, **defaults)[源代码]¶
create organization user locally
- dm.load_funcs.create_person(name, user, **defaults)[源代码]¶
create naturalperson locally, but why not call get_or_create?
- dm.load_funcs.create_person_account(name, pid, rand_pw=False, reset_pw=None, **defaults)[源代码]¶
create person user locally
- dm.load_funcs.load_course_record(filepath: str, output_func: Callable = None, html: bool = False) str [源代码]¶
从文件中导入学时信息
- param filepath:
文件路径,放在test文件夹内
- type filepath:
str
- param output_func:
输出函数, defaults to None
- type output_func:
Callable, optional
- param html:
允许以HTML格式输出,否则将br标签替换为
- , defaults to False
- type html:
bool, optional
- return:
返回导入结果的提示
- rtype:
str
- dm.load_funcs.load_double_degree(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入学术地图中的双学位专业标签(文件须为txt格式)
- dm.load_funcs.load_feedback(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入反馈详情的数据(csv)
- dm.load_funcs.load_feedback_comments(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入反馈的评论(feedbackcomments.csv) 需要先导入feedbackinf.csv
- dm.load_funcs.load_feedback_type(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入反馈类型的数据(csv)
- dm.load_funcs.load_major(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入学术地图中的主修专业标签(文件须为txt格式)
- dm.load_funcs.load_minor(filepath: str, output_func: Callable = None, html=False)[源代码]¶
该函数用于导入学术地图中的辅修专业标签(文件须为txt格式)
- dm.load_funcs.load_orgtype(filepath: str, output_func: Callable = None, html=False, debug=True)[源代码]¶