HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/libreoffice/program/wizards/common/UCB.pyo
�
�\Ofc@s�ddlZddlZddlmZddlmZddlmZddlm	Z	ddlm
Z
ddlmZdd	lm
Z
dd
lmZddlmZdefd
��YZdS(i����N(tabstractmethodi(t
FileAccess(tProperty(tCommand(tGlobalTransferCommandArgument(t	OVERWRITE(tOpenCommandArgument2(tALL(tCOPYtUCBcBs�eZdZdZdZd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd	�Zd
�Zd�Zddd
��YZRS(cCs1|jdd�|_t|�|_||_dS(Ns'com.sun.star.ucb.UniversalContentBroker((tcreateInstanceWithArgumentstucbRtfatxmsf(tselfR
((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyt__init__-scCsi|jj|t�sdS|j|d�}x7tt|��D]#}|jtj	|||��q>WdS(N(
RtexiststTruet	listFilestNonetrangetlentdeleteRtconnectURLs(Rtfoldertlti((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pytdeleteDirContent2s
cCs |j|j|�dt�dS(NR(texecuteCommandt
getContentR(Rtfilename((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR9scCs|j||d�dS(N(tcopy1R(Rt	sourceDirt	targetDir((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pytcopy=scCsM|j||�}x4tt|��D] }|j||||d�q%WdS(Nt(RRRtcopy2(RR R!tverifiertfilesR((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR@scCsW|jj|t�s+|jjj|�n|j|jd|j||||��dS(NtglobalTransfer(RRRt
xInterfacetcreateFolderRRtcopyArg(RR RR!t
targetName((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR$EscCs|j|||d�dS(NR#(R$(RR RR!((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pytcopy3OscCsIt�}t|_|jj||�|_||_||_t|_	|S(N(
RRt	OperationRtgetURLt	SourceURLt	TargetURLtNewTitleRt	NameClash(RR tsourceFilenameR!ttargetFilenametaArg((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR*Xs					cCs7t�}||_d|_||_|j|dd�S(Ni����i(RtNametHandletArgumenttexecuteR(RtxContenttaCommandNamet	aArgumenttaCommand((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyRbs
				cCsu|j|�}t�}t|_d|_t�f|_d|jd_d|jd_|j	|d|�}|j
�}g}|j�r"x�trt
|d�r�|j�}tj|�}	n't
|d�r�|jd�}	nd	}	t|	�dkr�n
|j|	�|j�s�Pq�q�Wn|dk	rqx@tt|��D])}
|j||
�sA|j|
�qAqAWn|S(
Ni�tTitleii����topentqueryContentIdentifierStringt	getStringiR#(RRRtModetPriorityRt
PropertiesR6R7RtgetStaticResultSettfirstRthasattrR@RtgetFilenameRARtappendtnextRRtverifytpop(RtpathR%R:R5txSett
xResultSetR&taIdtaTitleR((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyRis8				
cCs�t�g}||d_d|d_|j|dtjdt|���}t|t�ri|j	d�St|t
�r�|jd�r�tSt
St|t�r�|jd�St|t�r�|jd�SdSdS(Nii����tgetPropertyValuess[]com.sun.star.beans.Propertyi(RR6R7RtunotAnyttuplet
isinstancetstrRAtboolt
getBooleanRtFalsetinttgetInttgetShortR(RtcontenttpropNamet	classTypetpvtrow((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pytgetContentProperty�s




cCsIy&|jj|�}|jj|�SWntk
rDtj�dSXdS(N(RtcreateContentIdentifiertqueryContentt	Exceptiont	tracebackt	print_excR(RRMtident((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR�s

tVerifiercBseZed��ZRS(cCsdS(N((tobject((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyRK�s(t__name__t
__module__RRK(((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyRj�sN((RlRmRRRR
RRRR"RR$R,R*RRRcRRj(((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyR	's 						
			
		.		(RSRgtabcRtcommon.FileAccessRtcom.sun.star.beansRtcom.sun.star.ucbRRtcom.sun.star.ucb.NameClashRRtcom.sun.star.ucb.OpenModeRt)com.sun.star.ucb.TransferCommandOperationRRkR	(((s4/usr/lib64/libreoffice/program/wizards/common/UCB.pyt<module>s