From 09dcdfa3180a6dc1e5d327479e9262ac378d2269 Mon Sep 17 00:00:00 2001 From: halcyon <864072399@qq.com> Date: Thu, 26 Nov 2015 23:42:58 +0800 Subject: [PATCH] fix some bugs and hehe --- jasset/asset_api.py | 27 ------------------ jasset/models.py | 10 +++++-- jasset/views.py | 16 +++++++++-- static/files/excels/asset.xlsx | Bin 24181 -> 0 bytes .../excels/cmdb_excel_2015_11_20_00_04.xlsx | Bin 6125 -> 0 bytes templates/jasset/asset_add.html | 8 ++---- templates/jasset/asset_edit.html | 18 ++++++------ templates/jasset/asset_list.html | 4 +-- 8 files changed, 33 insertions(+), 50 deletions(-) delete mode 100644 static/files/excels/asset.xlsx delete mode 100644 static/files/excels/cmdb_excel_2015_11_20_00_04.xlsx diff --git a/jasset/asset_api.py b/jasset/asset_api.py index 9cc375509..0034f6495 100644 --- a/jasset/asset_api.py +++ b/jasset/asset_api.py @@ -69,33 +69,6 @@ def db_asset_add(**kwargs): asset.group = group_select -# -# def get_host_groups(groups): -# """ 获取主机所属的组类 """ -# ret = [] -# for group_id in groups: -# group = BisGroup.objects.filter(id=group_id) -# if group: -# group = group[0] -# ret.append(group) -# group_all = get_object_or_404(BisGroup, name='ALL') -# ret.append(group_all) -# return ret -# -# -# # def get_host_depts(depts): -# # """ 获取主机所属的部门类 """ -# # ret = [] -# # for dept_id in depts: -# # dept = DEPT.objects.filter(id=dept_id) -# # if dept: -# # dept = dept[0] -# # ret.append(dept) -# # return ret -# -# - - def db_asset_update(**kwargs): """ 修改主机时数据库操作函数 """ asset_id = kwargs.pop('id') diff --git a/jasset/models.py b/jasset/models.py index c6cbe4cb5..b3765fbe4 100644 --- a/jasset/models.py +++ b/jasset/models.py @@ -16,9 +16,13 @@ ASSET_STATUS = ( ) ASSET_TYPE = ( - (1, u"服务器"), - (2, u"网络设备"), - (3, u"其他") + (1, u"物理机"), + (2, u"虚拟机"), + (3, u"交换机"), + (4, u"路由器"), + (5, u"防火墙"), + (6, u"Docker"), + (7, u"其他") ) diff --git a/jasset/views.py b/jasset/views.py index 38a7d2a3a..dff5621d8 100644 --- a/jasset/views.py +++ b/jasset/views.py @@ -128,9 +128,10 @@ def asset_add(request): header_title, path1, path2 = u'添加资产', u'资产管理', u'添加资产' asset_group_all = AssetGroup.objects.all() af = AssetForm() + default_setting = get_object(Setting, name='default') + default_port = default_setting.field2 if default_setting else '' if request.method == 'POST': af_post = AssetForm(request.POST) - print af_post ip = request.POST.get('ip', '') hostname = request.POST.get('hostname', '') is_active = True if request.POST.get('is_active') == '1' else False @@ -147,7 +148,7 @@ def asset_add(request): asset_save = af_post.save(commit=False) if not use_default_auth: password = request.POST.get('password', '') - password_encode = password + password_encode = CRYPTOR.encrypt(password) asset_save.password = password_encode if not ip: asset_save.ip = hostname @@ -227,9 +228,11 @@ def asset_edit(request): af_save.password = '' af_save.port = None else: - if password_old != password: + if password: password_encode = CRYPTOR.encrypt(password) af_save.password = password_encode + else: + af_save.password = password_old af_save.is_active = True if is_active else False af_save.save() af_post.save_m2m() @@ -266,6 +269,7 @@ def asset_list(request): export = request.GET.get("export", False) group_id = request.GET.get("group_id", '') idc_id = request.GET.get("idc_id", '') + asset_id_all = request.GET.getlist("id", '') if group_id: group = get_object(AssetGroup, id=group_id) if group: @@ -302,6 +306,12 @@ def asset_list(request): Q(disk__contains=keyword)) if export: + if asset_id_all: + asset_find = [] + for asset_id in asset_id_all: + asset = get_object(Asset, id=asset_id) + if asset: + asset_find.append(asset) s = write_excel(asset_find) if s[0]: file_name = s[1] diff --git a/static/files/excels/asset.xlsx b/static/files/excels/asset.xlsx deleted file mode 100644 index 1b92db891d85cb5736e2ed99e166078360ea90d1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24181 zcmeIa2|QG9-#>mV*%@0V#3XBpsceM|$(|@>Un*paNyx-7_B9kmktKTx*&<|LDqqEi7hu6_=R81L%`@|hXs@&HEY`u{!t z2hYIs`+es+kMinm8B%pWDHwmO)@D;#jp*e+d|s=qE3Io3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T{%!8mzpgk1<=*-IOscVhyK#Qb0|Y2)PUcg^AG*D>Tff* z{H1Cxl*8hWnMMCDkINrg`Tf)ve`%!XU;iJjUV;|@ diff --git a/static/files/excels/cmdb_excel_2015_11_20_00_04.xlsx b/static/files/excels/cmdb_excel_2015_11_20_00_04.xlsx deleted file mode 100644 index 05fc5eefcdcf615a97670bbb3e883e1f28f9b3e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6125 zcmZ`-1yq!4*BxSD=$b)FQV@`qkdOvxhL)D@0ftTmqz0ss1}PB`kVd+@M5IeZTDm0v z(fi%sds*K%v)1#jch>APYxX|pyk{S%A{sgv004jhuK=!3M1i~96{r9}3l0E4hWymi zp3}n-Zs%fcVd3h+`TN4n;pt%i>b0Ru4i`9N_f&`Lqp^hMoRDq77y2qUODnN54NyB6 zBsDg3bxQf+$7_Lt&rQxtL-8bV>MpjCtfDb5a0#n?KPVk?@Nv@m zjGcKBUo>|7nA7Qj(fGEe$){^oyc7!=`WhauchV)QGJ0xo2WsQ*GPzUUDWsO~XQMwO z?7KL+Bm7$Djw_6R>d-}P4pry=ocB;eNJorsX9>=C@8mV^VwjP5&1+7kQl1bTSG%dl z?uV*BkMEHKhZ>~OSHcwN6~8i_IDvwB9FwNPqwQ)QoTclwHijqa5{ z^?H&BWc|)8d}wk&n>wSWERSNL+P9HRb$xrWS5rT?n2{k2X-vx>SPzbtjW1>+GyY27&?u-u(XhK@{SJHqn${2$K;pXxqb#;WYxF^^A~sOZ>AtI;wI6 z2tAdQ1a#?WOhPFcfF6kI9N}Y%zX@MVpQP|7^jV-r=n3Zc4&HO*wNmjBVmz7Dh2x~sj7FhjnaYhe?}gmWh4ZdJQI{CY#b@~Gnk-J= zs)WB~d>Zx^64nfC%;7ia0|&+upj(uZB{hIECk2vp#3S?L)Uxlrb&^J_+%}zIZF;U| ztD0_<3RbY&3SUcU>_nu-7OB-INp2wYFpq~HR?GG)gB;X;!_I%4VhtXz|DoJxhc;ccg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Aq{ixjo$*$$6grqC{iuwhbL#3%6&lW$U)(+1XEkA}yI)F=f2R z+mQN}Y?fCzyj?yX%6&X{x+i2~Xx=@;B_y*DoT;gU5`}Uk$d2#gkWs;P-`okT=+%^D z^I1&aP>3S+D_&CL{m7+`$txWwS)dV1Yi^wA-W-ymF_~5NP}U+VrTD?;We>S15T*H- z*}?5vDDM_iJ_CGi(U19DFWFos*$yKr*+I!of(kc$Ic@m*h;m5WrE94I@# zfi`cRiC47s9*na3Rc>d{&Te>&IPNPO%qZvWHLHQGA(2;`uhdVdaM_9}z`%jw(BamB zYa3?*Rve5_2238OJlwQZ%PS=Yg~Gn3XkCb0FNSyQ*&DZ-$I8hMqQL#C12&Q@BjX!k z?yXTrMWws0=Y20$Ul!I3i_g?EzPsWcVa3F(+E|%FP z&)9u|QQuobthAf{-a3+rk4Q!+{u-kGBIVce@b9I{-vs?~2-3S(*yX2s?!*c#u`VpZ z2D3+KFRN;l?B%U%ZLUsjH92>5mRUu)LeQEsoT{)zzrya-rFGXI|_fAf7Ce0$yU2ke0K z9{+9may!Cp)BY!d4RU(EZQ*aDZ@b4oXll?u(0_Z$+wj{)=?@%^^bo1|3CNNhTb0O{y?RXp5ea?c(()GZW(_9Fd|LgKN`qw;O)x#0~A0e7xI_?N1Z_x Ufk;UJ0Bq#@1u{2uAiwVZ51tE?YybcN diff --git a/templates/jasset/asset_add.html b/templates/jasset/asset_add.html index 807dcd130..210d583d4 100644 --- a/templates/jasset/asset_add.html +++ b/templates/jasset/asset_add.html @@ -74,11 +74,11 @@ - -