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/share/PackageKit/helpers/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/PackageKit/helpers/yum/yumMediaManager.pyc
Ñò
°séJc@s6dZdefd„ƒYZdefd„ƒYZdS(s
This is a module for dealing with removable media
NOTE: releasing (unmounting and unlocking) is done when media is destructed
tMediaDevicecBszeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
s+
    You should just use acquire() to get the mount point (the implementation is
    supposed to be smart enough to return mount point when it's already mounted)
    You don't need to manually call release(), just destruct MediaDevice object
    and the implementation should do that if needed.
    cCst|_t|_tƒ‚dS(s`
        media_id argument is the implementation-specific id, provided by MediaManager.
        N(tFalset_unmount_neededt_unlock_neededtNotImplementedError(tselftmedia_id((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt__init__ s		cCs4|io|iƒn|io|iƒndS(s‘
        destruct the object, unmount and unlock if needed.
        no need to re-implement this method when you derive from this class.
        N(RtunmountRtunlock(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt__del__(s

cCs
tƒ‚dS(N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytis_removable2scCs
tƒ‚dS(N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt
is_mounted5scCs
tƒ‚dS(N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt	is_locked8scCs
tƒ‚dS(s-return the mount point or None if not mountedN(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytget_mount_point;scCs
tƒ‚dS(s-return True if lock is successfully acquired.N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytlock?scCs
tƒ‚dS(s<return True if it was able to release the lock successfully.N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyR	CscCs
tƒ‚dS(s|
        mount the device and return the mount point.
        If it's already mounted, just return the mount point.
        N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytmountGscCs
tƒ‚dS(s#unmount the device and return True.N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyRNscCs|iƒ|iƒS(sM
        return the mount point, lock and mount the device if needed
        (RR(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytacquireSs
cCs|iƒ|iƒS(sb
        unmount and release lock. no need to call this method, just destruct the object.
        (R	R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pytreleaseZs
(t__name__t
__module__t__doc__RR
RRR
RRR	RRRR(((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyRs		
									tMediaManagercBs eZdZd„Zd„ZRS(sFJust iterate over an instance of this class to get MediaDevice objectscCs
tƒ‚dS(N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyRcscCs
tƒ‚dS(N(R(R((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt__iter__fs(RRRRR(((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyRas	N(RtobjectRR(((s4/usr/share/PackageKit/helpers/yum/yumMediaManager.pyt<module>sH

Youez - 2016 - github.com/yon3zu
LinuXploit