403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/telepathy/server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/telepathy/server/conn.pyo
-Jc@sddkZddkZddkZddkZddklZlZlZlZl	Z	ddk
lZlZl
Z
lZlZddklZlZlZlZlZlZlZlZddklZddklZddklZei dZ!d	Z"d
eefdYZddk#l$Z$dd
k%l&Z&ddk'l(Z)de)fdYZ(ddk*l+Z,de,efdYZ+ddk-l.Z.ddk/l0Z0ddk1l2Z2dS(iN(tCONNECTION_STATUS_DISCONNECTEDtCONNECTION_STATUS_CONNECTEDtHANDLE_TYPE_NONEtHANDLE_TYPE_CONTACTtLAST_HANDLE_TYPE(tDisconnectedtInvalidArgumentt
InvalidHandletNotAvailabletNotImplemented(tCONN_INTERFACEtCONN_INTERFACE_ALIASINGtCONN_INTERFACE_AVATARStCONN_INTERFACE_CAPABILITIEStCONN_INTERFACE_PRESENCEtCONN_INTERFACE_RENAMINGtCONNECTION_INTERFACE_REQUESTStCHANNEL_INTERFACE(tHandle(tDBusProperties(t
Connections(?:^[0-9])|(?:[^A-Za-z0-9])cCsBt|to|id}n|pdStid|S(Nsutf-8t_cSsdt|idS(s_%02xi(tordtgroup(tmatch((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt<lambda>6s(t
isinstancetunicodetencodet_BADtsub(tname((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt_escape_as_identifier1s
RcBs!eZhZhZd%dZdZdZdZdZ	dZ
dZdZdZ
d	Zed
ZdZdZeiied
ddddZeiied
ddddZeiied
ddddZeiied
ddddddZeiied
ddddddZeiied
ddddddZeiied
ddddZeiiedd d!Zeiied
dddd"Z eiied
ddd#d$Z!RS(&cs=|djo&ddk}|idtd}nt|}d|||f}tii|dti}d|||f}t	i
||tiiidd	d	d
t
_ti
ithfdd6|_t_ti_d
_h_t
_d_dS(s
        Parameters:
        proto - the name of the protcol this conection should be handling.
        account - a protocol-specific account name
        manager - the name of the connection manager
        iNs?The manager parameter to Connection.__init__ should be suppliedtpythonu-org.freedesktop.Telepathy.Connection.%s.%s.%stbuss./org/freedesktop/Telepathy/Connection/%s/%s/%stNameOwnerChangedsorg.freedesktop.DBuss/org/freedesktop/DBuscstiiS((tdbustUInt32t
GetSelfHandle((tself(s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR_st
SelfHandleii(tNonetwarningstwarntDeprecationWarningR R$tservicetBusNamet
SessionBust_Connectiont__init__tadd_signal_receivertname_owner_changed_callbacktsett_interfacesRt_implement_property_getR
t_protoRt_statustweakreftWeakValueDictionaryt_handlest_next_handle_idt_client_handlest	_channelst_next_channel_id(R'tprototaccounttmanagerR*t
clean_accounttbus_nametobject_path((R's9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR1=s8
	

					cCsxQ|iD]C\}}||iijo|i|}n8||iijo|i|}ntd||djo4t|tp td|t|fqPq
|djo:t|tt	fp td|t|fqPq
|djo4t|t
p td|t|fqPq
tdtq
Wx8|iiD]'\}}||jo|||<qdqdWt
|iii|i}|otd	|nd
S(s4
        Uses the values of self._mandatory_parameters and
        self._optional_parameters to validate and type check all of the
        provided parameters, and check all mandatory parameters are present.
        Sets defaults according to the defaults if the client has not
        provided any.
        sunknown parameter name %stss9incorrect type to %s parameter, got %s, expected a stringtiunqs7incorrect type to %s parameter, got %s, expected an inttbs;incorrect type to %s parameter, got %s, expected an booleans0unknown type signature %s in protocol parameterss required parameters %s not givenN(t	iteritemst_mandatory_parameterstkeyst_optional_parametersRRRttypetinttlongtboolt	TypeErrort_parameter_defaultsR4t
difference(R't
parameterstparmtvaluetsigtmissing((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytcheck_parametersls0

$
$
$
$cCs$|itjotdndS(NsDmethod cannot be called unless status is CONNECTION_STATUS_CONNECTED(R8RR(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytcheck_connectedscCs||f|ijopdG|G|G|iiGHttg}|iiD]}||i|qJ~GHtd||fndS(NsConnection.check_handles&handle number %d not valid for type %d(R;RKtstrtlistR(R'thandle_typethandlet_[1]tx((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytcheck_handles
<cCs2|tjp
|tjotd|ndS(Nshandle type %s not known(RRR(R'RM((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytcheck_handle_typescCs|i}|id7_|S(Ni(R<(R'tid((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt
get_handle_ids	cCsZ||ijo$|i|i|i|fn#t|i|fg|i|<dS(N(R=taddtget_typeR4(R'R^tsender((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytadd_client_handles$cCsE||jo4|djo'||ijodG|GH|i|=ndS(Ntsdeleting handles for(R=(R'Rt	old_ownert	new_owner((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR3s*	cCs
||_dS(N(t_self_handle(R'R^((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytset_self_handlescCs)d|i|if}|id7_|S(Ns%s/channel%di(t_object_pathR?(R'tret((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytget_channel_pathscCsgt}x?|D]7}||ijo!|ii||i|qqW|o|i|ndS(s+ add new channels and signal their creationN(R4R>Retsignal_new_channels(R'tchannelstsignaltsignal_channelstchannel((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytadd_channelss	c	Cs|ig}|D]}||i|ifq~xc|D][}|i}|td}|td}|td}|i|i|i|||q>WdS(Ns.TargetHandleTypes
.TargetHandles
.Requested(tNewChannelsRnt	get_propsRt
NewChannelt_type(R'RrR_Rutpropsttarget_handle_typet
target_handletsuppress_handler((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRqs
*cCs$|ii||i|idS(N(R>tremovet
ChannelClosedRn(R'Ru((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytremove_channelstin_signatureRit
out_signaturetascCs|i|iS(N(RZR5(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt
GetInterfacess
RFcCs|iS(N(R7(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytGetProtocolstuaucCss|i|i|x|D]}|i||qWg}x.|D]&}|i|i||fiqEW|S(N(RZRbRatappendR;tget_name(R'R]thandlesR^Ro((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytInspectHandless

$tuastautsender_keywordRgc	Cs|i|i|g}x|D]}d}x5|iiD]$}|i|jo|}Pq@q@W|p5|i}t|||}||i||f<n|i|||i	|i
q$W|S(N(RZRbR)R;tvaluesRRdRRhRtget_id(	R'R]tnamesRgRoRR^t	candidateRc((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytRequestHandless$

	cCsp|i|i|x|D]}|i||qWx1|D])}|i||f}|i||q?WdS(N(RZRbRaR;Rh(R'R]RRgR^thand((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytHoldHandless

cCs|i|i|x|D]}}|i|||i||f}||ijo8||f|i|jotd||fqqtdqWx;|D]3}|i||f}|i|i||fqWdS(Ns*client is not holding handle %s of type %ss client does not hold any handles(RZRbRaR;R=RR(R'R]RRgR^R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytReleaseHandless

tucCs|i|iS(N(RZRl(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR&&s
t	signaturetuucCs
||_dS(N(R8(R'tstatustreason((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt
StatusChanged+scCs|iS(N(R8(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt	GetStatus/ssa(osuu)cCsV|ig}x?|iD]4}|i|i|i|if}|i|qW|S(N(RZR>RnRzt_get_handle_typet_handleR(R'RoRutchan((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytListChannels3s

!N("t__name__t
__module__RLRJR)R1RYRZRaRbRdRhR3RmRptTrueRvRqRR$R-tmethodR
RRRRRRR&RsRRR(((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR8s2/	%										'''---'!'(tConnectionInterfaceAliasing(tConnectionInterfaceAvatars(tConnectionInterfaceCapabilitiesRcBseZdZeiiedddddZeiiedddZ	eiiedd	dd
dZ
RS(cCsti|h|_dS(N(t _ConnectionInterfaceCapabilitiesR1t_caps(R'((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR1Js
RRRsa(usuu)cCsg}t}x|D]}|djo ||f|ijo
tq||ijoO|i|}x?|iD]-\}}|i|||d|dgqpWqqW|S(Nii(RR;RRtitemsR(R'RRoR]R^ttypestctypetspecs((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytGetCapabilitiesPs#


-Rs	a(usuuuu)cCsFx?|D]7\}}}}}}||g|ii|h|<qWdS(N(Rt
setdefault(R'tcapsR^Rtgen_oldtgen_newtspec_oldtspec_new((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytCapabilitiesChanged]ssa(su)assa(su)c
CsE|ii|ih}h}x|D]\}}|||<q%Wx|D]}d||<qFWg}x|iD]\}}|i|d\}}	|djod\}
}n||	|B}
}|	|jp
||
jo&|i|i|||
|	|fqmqmW|i|g}|iD]\}}|||dfq!~S(Nii(ii(ii(RRRlR)RItgetRR(
R'ReRtmy_capstchangedRt	spec_capsRRRRRR_((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytAdvertiseCapabilitiesbs(


(RRR1R$R-RR
RRsRR(((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRIs
	'
!(tConnectionInterfaceRequestsRc	BseZdZdZdZdZdZeii	e
ddddd	ddZeii	e
dddd
d	ddZRS(csNtitiithfdd6fdd6dS(NcstiiddS(Rs(oa{sv})(R$tArrayt
_get_channels((R'(s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRstChannelscstiiiddS(Rs	(a{sv}as)(R$Rt_channel_managertget_requestable_channel_classes((R'(s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRstRequestableChannelClasses(t_ConnectionInterfaceRequestsR1RR6R(R'((R's9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyR1s


	cCs1g}|iD]}||i|ifq~S(N(R>RnRx(R'R_tc((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRscstdjpttdtiotdnfd}|dd|dditdd	jotd
n|dd|d
d|dd|ddtd}itdt}itdd	}|||fS(Ns.ChannelTypesChannelType is requiredcsEtd|}|jo&||otd|ndS(Nt.s
Invalid %s(RR(tproptfuntp(R{(s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pytcheck_valid_type_if_existsstTargetHandleTypecSs|djo
|djS(iii ill((R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRstTargetHandlecSs|djo
|djS(iii ill((R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRss
.TargetHandleisTargetHandle may not be 0tTargetIDcSst|tiS((RR$tString(R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRstInitiatorHandlecSstS((tFalse(R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRstInitiatorIDcSstS((R(R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRst	RequestedcSstS((R(R((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRss.TargetHandleType(RRR$RRRR(R'R{RRMR]R^((R{s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt_check_basic_propertiess*



	cCs|itdt}|itdd}|itdd}|tjo!|djotddn|tjo!|djotddn|tjom|djo!|djotdd	n|djo!|djotd
dn|i|ndS(Ns.TargetHandleTypes
.TargetHandles	.TargetIDsWhen TargetHandleType is NONE, sTargetHandle must be omitteds(When TargetHandleType is NONE, TargetID smust be omitteds#When TargetHandleType is not NONE, s2either TargetHandle or TargetID must also be givens#TargetHandle and TargetID must not s
both be given(RRRR)RRb(R'R{R|R}t	target_id((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt_validate_handles$
	
cCs|itdt}|itdd}|itdd}|i}|tjo|djoxM|iiD]<}|i|jo#|i|jo|i	}qxqxW|pt
d||n||td<|td=q|i||nt|td<|S(Ns.TargetHandleTypes
.TargetHandles	.TargetIDs!TargetID %s not valid for type %ds
.Requested(
RRRR)tcopyR;t
itervaluesRRfRRRaR(R'R{R|R}Rtaltered_propertiesR^((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt_alter_propertiess&
	

&Rsa{sv}Rsoa{sv}tasync_callbackst_successt_errorcCs|i|\}}}|i||i|}|ii|dt}g}	xl|D]d}
|
idd\}}||ijo)|i||jo|	i|
qqY|	i|
qYWx|	D]
}
||
=qW||i	||i
|gdS(NRsRi(RRRRtchannel_for_propsRtrsplitt_immutable_propertiesRRnRq(R'trequestRRRMR]R^R{RuttodelRtifaceRR((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt
CreateChannels"
sboa{sv}c
Cs|i|\}}}|i||i|}|ii|}|ii|dt}	|||	i||i|	gdS(NRs(	RRRRtchannel_existsRRRnRq(
R'RRRRMR]R^R{tyoursRu((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt
EnsureChannels
(s_successs_error(s_successs_error(
RRR1RRRRR$R-RRRR(((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyRs			&		(tConnectionInterfacePresence(t!ConnectionInterfaceSimplePresence(tConnectionInterfaceContacts(3R$tdbus.servicetreR9ttelepathy.constantsRRRRRttelepathy.errorsRRRRR	ttelepathy.interfacesR
RRR
RRRRttelepathy.server.handleRttelepathy.server.propertiesRttelepathy._generated.ConnectionRR0tcompileRR t2telepathy._generated.Connection_Interface_AliasingRt1telepathy._generated.Connection_Interface_AvatarsRt6telepathy._generated.Connection_Interface_CapabilitiesRRt2telepathy._generated.Connection_Interface_RequestsRRt2telepathy._generated.Connection_Interface_PresenceRt9telepathy._generated.Connection_Interface_Simple_PresenceRt2telepathy._generated.Connection_Interface_ContactsR(((s9/usr/lib/python2.6/site-packages/telepathy/server/conn.pyt<module>s0((:	6

Youez - 2016 - github.com/yon3zu
LinuXploit