Files
djangohelper/__pycache__/remote_command_tab.cpython-38.pyc

53 lines
8.5 KiB
Plaintext
Raw Normal View History

U
2025-08-28 22:30:17 +08:00
<00>V<EFBFBD>h,<00>@s<>ddlZddlZddlmZddlmZmZmZmZm Z m
Z
2025-08-28 22:30:17 +08:00
m Z m Z m Z mZmZddlmZddlmZmZmZmZmZmZGdd<07>de<05>ZdS)<08>N)<01>logger) <0B>QWidget<65> QVBoxLayout<75> QHBoxLayout<75>QLabel<65> QLineEdit<69> QPushButton<6F> QComboBox<6F> QMessageBox<6F> QTextEdit<69> QGroupBox<6F> QGridLayout)<01>Qt)<06>GitInstallThread<61>GitCloneThread<61>ListDirectoryThread<61>SetTimezoneAndRestartThread<61>CheckFirewallThread<61>OpenPortThreadcs<>eZdZd"<22>fdd<03> Zdd<05>Zdd<07>Zdd <09>Zd
d <0B>Zd d <0A>Zdd<0F>Z dd<11>Z
2025-08-28 22:30:17 +08:00
dd<13>Z dd<15>Z dd<17>Z dd<19>Zdd<1B>Zdd<1D>Zdd<1F>Zd d!<21>Z<12>ZS)#<23>RemoteCommandTabNcst<00><00>|<01>||_|<00><03>dS)N)<04>super<65>__init__<5F>parent<6E>init_ui)<02>selfr<00><01> __class__<5F><00>Uc:\Users\xiaji\Documents\个人文件夹\夏骥\web应用部署\remote_command_tab.pyrs zRemoteCommandTab.__init__cCsNt<00>}td<01>}t<02>}|<03>td<02>dd<03>t<05>|_|j<06>d<04>|<03>|jdd<05>|<03>td<06>dd<03>t<05>|_|j<08>d<07>|<03>|jdd<05>t d<08>|_
|j
j <0B> |j <0A>|<03>|j
dd <09>t d
<EFBFBD>|_|jj <0B> |j<0F>|<03>|jdd <09>t d <0B>|_|jj <0B> |j<11>|<03>|jd d <09>t d <0C>|_|jj <0B> |j<13>|<03>|jd ddd <09>|<02>|<03>|<01>|<02>td<0E>}t<02>}t d<0F>|_|jj <0B> |j<16>|<05>|jdd<03>|<05>td<10>dd<05>td<11>|_|<05>|jdd <09>t d<12>|_|jj <0B> |j<19>|<05>|jdd <0A>|<04>|<05>|<01>|<04>td<13>}t<00>}t<1A>|_|j<1B>d<14>|j<1B>d<15>|<07>|j<1B>|<06>|<07>|<01>|<06>|<01><1D>|<00>|<01>|<00><1E>dS)NuGit代码管理u Git仓库URL:rz$https://github.com/username/repo.git<69>u 项目路径:z/home/user/projectu 安装Git<69>u 拉取代码u 列出目录u设置时区并重启<E9878D>u防火墙管理u检查防火墙u端口:Z8000u 开放端口u 操作输出Tu!操作结果将在这里显示...)rr r <00> addWidgetrr<00> git_url_input<75>setPlaceholderText<78>project_path_inputr<00>install_git_btn<74>clicked<65>connect<63> install_git<69> clone_btn<74> clone_git<69> list_dir_btn<74>list_directory<72>set_timezone_btn<74>set_timezone_and_restart<72> setLayout<75>check_firewall_btn<74>check_firewall<6C>
port_input<EFBFBD> open_port_btn<74> open_portr <00> output_text<78> setReadOnly<6C>
addStretch<EFBFBD>load_git_config)r<00>layoutZ git_groupZ
git_layoutZfirewall_groupZfirewall_layoutZ output_groupZ output_layoutrrrrsb  










   


2025-08-28 22:30:17 +08:00
zRemoteCommandTab.init_uic
Csz<>tj<01>tj<01>t<04>d<01>}t|ddd<04><03>}t<06>|<02>}W5QRX|r<>d|kr<>t|d<00>dkr<>|dd}|<04> dd<08>}|<04> d d<08>}|j
<EFBFBD> |<05>|j <0C> |<06>t <0A>d
|<05>d |<06><00><04>n
t <0A>d <0C>WnPtk
<EFBFBD>r}z0t <0A>d t|<07><01><00><02>t<13>|dd t|<07><01><00><02>W5d}~XYnXdS)N<> config.json<6F>r<>utf-8<><01>encoding<6E>serversr<00>git_url<72><00>remote_directoryu(从配置文件加载git配置: git_url=z, project_path=u'配置文件中未找到服务器配置u加载git配置失败: <20>警告)<14>os<6F>path<74>join<69>dirname<6D>__file__<5F>open<65>json<6F>load<61>len<65>getr#<00>setTextr%r<00>info<66>warning<6E> Exception<6F>error<6F>strr
)r<00> config_path<74>f<>config<69> server_configrA<00> project_path<74>errrr9]s     z RemoteCommandTab.load_git_configcCsP|<00><00>s dS|j<01>d<01>|j<03>d<02>t|jj<07>|_|jj <09>
|j <0B>|j<08> <0C>dS)Nu正在安装Git...F) <0A>check_ssh_connectionr6<00>appendr&<00>
setEnabledrr<00>
ssh_clientZgit_install_thread<61> result_readyr(<00>on_git_install_result<6C>start<72>rrrrr)ts  zRemoteCommandTab.install_gitcCsZ|j<00>d<01>|r4|j<02>d|<02><00><02>t<04>d|<02><00><02>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTuGit安装成功: uGit安装失败: )r&r]r6r\rrPrS<00>r<00>success<73>messagerrrr`s  z&RemoteCommandTab.on_git_install_resultc
Cs\|<00><00>s dS|j<01><02><00><03>}|j<04><02><00><03>}|r0|sBt<05>|dd<02>dSz<>tj<08> tj<08>
t <0B>d<03>}t |ddd<06><03>}t <0A>|<04>}W5QRX|r<>d|kr<>t|d<00>dkr<>|dd}|<06>d d
<EFBFBD>}|r<>|}t<11>d |<07><00><02>Wn8tk
<EFBFBD>r}zt<11>d t|<08><01><00><02>W5d}~XYnX|j<16>d |<01>d|<02>d<0F><05>|j<18>d<10>t|jj||<02>|_|jj<1E>|j <20>|j<1D>!<21>dS)NrDu$请填写Git仓库URL和项目路径r;r<r=r>r@r<00> django_pathrBu+使用django_path作为克隆目标路径: u获取django_path失败: u 正在克隆 u<20>...F)"r[r#<00>text<78>stripr%r
rQrErFrGrHrIrJrKrLrMrNrrPrRrSrTr6r\r*r]rrr^Zgit_clone_threadr_r(<00>on_git_clone_resultra) rrArYrUrVrWrXrfrZrrrr+<00>s0  & zRemoteCommandTab.clone_gitcCsZ|j<00>d<01>|r4|j<02>d|<02><00><02>t<04>d|<02><00><02>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTuGit克隆成功: uGit克隆失败: )r*r]r6r\rrPrSrcrrrrj<00>s  z$RemoteCommandTab.on_git_clone_resultcCs~|<00><00>s dS|j<01><02><00><03>}|s0t<04>|dd<02>dS|j<06>d|<01>d<04><03>|j<08> d<05>t
|j j |<01>|_ |j j<0E>|j<10>|j <0A><11>dS)NrDu!请输入要列出的目录路径u正在列出目录 rgF)r[r%rhrir
rQr6r\r,r]rrr^Zlist_dir_threadr_r(<00>on_list_directory_resultra)rrFrrrr-<00>s zRemoteCommandTab.list_directorycCsZ|j<00>d<01>|r4|j<02>d|<02><00><02>t<04>d|<02><00><02>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTu目录列表:
u目录列表成功:
u列出目录失败: )r,r]r6r\rrPrSrcrrrrk<00>s  z)RemoteCommandTab.on_list_directory_resultcCsP|<00><00>s dS|j<01>d<01>|j<03>d<02>t|jj<07>|_|jj <09>
|j <0B>|j<08> <0C>dS)Nu7正在设置时区为Asia/Shanghai并重启服务器...F) r[r6r\r.r]rrr^Ztimezone_threadr_r(<00>"on_set_timezone_and_restart_resultrarbrrrr/<00>s  z)RemoteCommandTab.set_timezone_and_restartcCsZ|j<00>d<01>|r4|j<02>d|<02><00><02>t<04>d|<02><00><02>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTu时区设置成功: u时区设置失败: )r.r]r6r\rrPrSrcrrrrl<00>s  z3RemoteCommandTab.on_set_timezone_and_restart_resultcCsP|<00><00>s dS|j<01>d<01>|j<03>d<02>t|jj<07>|_|jj <09>
|j <0B>|j<08> <0C>dS)Nu正在检查防火墙状态...F) r[r6r\r1r]rrr^Zfirewall_threadr_r(<00>on_check_firewall_resultrarbrrrr2<00>s  zRemoteCommandTab.check_firewallcCsT|j<00>d<01>|r.|j<02>d|<02><00><02>t<04>d<03>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTu防火墙状态:
u防火墙状态检查成功u防火墙状态检查失败: )r1r]r6r\rrPrSrcrrrrm<00>s   z)RemoteCommandTab.on_check_firewall_resultcCs~|<00><00>s dS|j<01><02><00><03>}|s0t<04>|dd<02>dS|j<06>d|<01>d<04><03>|j<08> d<05>t
|j j |<01>|_ |j j<0E>|j<10>|j <0A><11>dS)NrDu请输入要开放的端口号u正在开放端口 rgF)r[r3rhrir
rQr6r\r4r]rrr^Zopen_port_threadr_r(<00>on_open_port_resultra)r<00>portrrrr5<00>s zRemoteCommandTab.open_portcCsZ|j<00>d<01>|r4|j<02>d|<02><00><02>t<04>d|<02><00><02>n"|j<02>d|<02><00><02>t<04>d|<02><00><02>dS)NTu端口开放成功: u端口开放失败: )r4r]r6r\rrPrSrcrrrrns  z$RemoteCommandTab.on_open_port_resultcCs$|jr|jjs t<02>|dd<02>dSdS)NrDu请先连接服务器FT)rr^r
rQrbrrrr[ sz%RemoteCommandTab.check_ssh_connection)N)<14>__name__<5F>
__module__<EFBFBD> __qualname__rrr9r)r`r+rjr-rkr/rlr2rmr5rnr[<00> __classcell__rrrrrs I  "       r)rErK<00>logurur<00>PySide6.QtWidgetsrrrrrrr r
r r r <00>PySide6.QtCorer<00>threadsrrrrrrrrrrr<00><module>s  4