403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/landscape/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pyc

}9Rc@sSdZddlZddlmZdZdZdZdZdZdS(	s
Different versions of the Python DBus bindings return different types
to represent integers, strings, lists, etc.  Older versions return
builtin Python types: C{int}, C{str}, C{list}, etc.  Newer versions
return DBus-specific wrappers: C{Int16}, C{String}, C{Array}, etc.
Failures occur when DBus types are used because bpickle doesn't know
that an C{Int16} is really an C{int} and that an C{Array} is really a
C{list}.

L{install} and L{uninstall} can install and remove extensions that
make bpickle work with DBus types.
iN(tbpicklecCs+x$tD]\}}|tj|<q
WdS(s*Install bpickle extensions for DBus types.N(tget_dbus_typesRtdumps_table(ttypetfunction((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pytinstallscCs(x!tD]\}}tj|=q
WdS(s,Uninstall bpickle extensions for DBus types.N(RRR(RR((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pyt	uninstallscCsdt||fS(sm
    Convert the specified L{dbus.types.UTF8String} to bpickle's
    representation for C{unicode} data.
    su%s:%s(tlen(tobj((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pytdumps_utf8stringscCsdt|S(sK
    Convert a dbus.types.Double into a floating point representation.
    sf%r;(tfloat(R((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pytdumps_double'sc
csxdtjfdtjfdtjfdtjfdtjfdtjfdtjfdtfd	tjfd
tjfdtjfdtfgD];\}}tt	j
|d
}|d
k	r||fVqqWd
S(sT
    Generator yields C{(type, bpickle_function)} for available DBus
    types.
    tBooleantInt16tUInt16tInt32tUInt32tInt64tUInt64tDoubletArrayt
DictionarytStringt
UTF8StringN(Rt
dumps_boolt	dumps_intRt
dumps_listt
dumps_dictt
dumps_unicodeR	tgetattrtdbusttypestNone(t	type_nameRR((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pyR.s	(	t__doc__Rt
landscape.libRRRR	RR(((s>/usr/lib/python2.7/dist-packages/landscape/lib/bpickle_dbus.pyt<module>s				

Youez - 2016 - github.com/yon3zu
LinuXploit