def get(self): self.render("./backup_log_analyze.html", dm_env_type=get_dmm_from_dm('03'), dm_db_type=get_dmm_from_dm('02'), db_backup_tags=get_db_backup_tags(), begin_date=get_day_nday_ago(now(), 15), end_date=get_day_nday_ago(now(), 0))
def get(self): self.render("./monitor_log_analyze.html", gather_server=get_gather_server(), monitor_dss=get_dss(''), monitor_indexes=get_monitor_indexes2(''), begin_date=get_day_nday_ago(now(), 0), end_date=get_day_nday_ago(now(), 0))
def logon_user_check(login_name, password, verify_code, verify_img): result = {} result['url'] = '' print(login_name, password) if login_name == "": result['code'] = '-1' result['message'] = '用户名不能为空!' return result if password == "": result['code'] = '-1' result['message'] = '口令不能为空!' return result if verify_code == "": result['code'] = '-1' result['message'] = '验证码不能为空!' return result if check_user_exist(login_name) == 0: result['code'] = '-1' result['message'] = '用户名不存在!' return result if get_user_by_loginame(login_name)['password'] != password: result['code'] = '-1' result['message'] = '口令有误!' return result if verify_code.upper() != verify_img.upper(): result['code'] = '-1' result['message'] = '验证码不正确!' return result if get_user_by_loginame(login_name)['status'] == '0': result['code'] = '-1' result['message'] = '用户已禁用,请联系管理员!' return result if get_user_by_loginame(login_name)['expire_date'] < now(): result['code'] = '-1' result['message'] = '该用户已过期,请联系管理员!' return result result['code'] = '0' result['message'] = '验证成功!' return result
def check_forget_password(login_name, email): result = {} result['url'] = '' if login_name == "": result['code'] = '-1' result['message'] = '用户名不能为空!' return result if email == "": result['code'] = '-1' result['message'] = '邮箱不能为空!' return result if check_user_exist(login_name) == 0: result['code'] = '-1' result['message'] = '用户名不存在!' return result if check_email_exist(login_name, email) == 0: result['code'] = '-1' result['message'] = '非注册邮箱!' return result if get_user_by_loginame(login_name)['status'] == '0': result['code'] = '-1' result['message'] = '用户已禁用,请联系管理员!' return result if get_user_by_loginame(login_name)['expire_date'] < now(): result['code'] = '-1' result['message'] = '该用户已过期,请联系管理员!' return result result['code'] = '0' result['message'] = '验证成功!' return result
def get(self): self.render("./sync_log_analyze2.html", dm_proj_type=get_dmm_from_dm('05'), db_sync_ywlx=get_db_sync_ywlx(), begin_date=get_day_nday_ago(now(), 0), end_date=get_day_nday_ago(now(), 0))
def get(self): self.render("./sync_bigdata_log_analyze.html", db_sync_tags=get_datax_sync_tags(), begin_date=get_day_nday_ago(now(), 0), end_date=get_day_nday_ago(now(), 0))
def get(self): self.render("./minio_log_analyze.html", minio_tags = get_minio_tags(), begin_date = get_day_nday_ago(now(),15), end_date = get_day_nday_ago(now(),0) )