| 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 : |
Ñò
°séJc @ s6 d Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s
This is a module for dealing with removable media
NOTE: releasing (unmounting and unlocking) is done when media is destructed
t MediaDevicec B sz e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z RS(
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.
c C s t | _ t | _ t ƒ ‚ d S( s`
media_id argument is the implementation-specific id, provided by MediaManager.
N( t Falset _unmount_neededt _unlock_neededt NotImplementedError( t selft media_id( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt __init__ s c C s4 | i o | i ƒ n | i o | i ƒ n d S( s‘
destruct the object, unmount and unlock if needed.
no need to re-implement this method when you derive from this class.
N( R t unmountR t unlock( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt __del__( s
c C s
t ƒ ‚ d S( N( R ( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt is_removable2 s c C s
t ƒ ‚ d S( N( R ( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt
is_mounted5 s c C s
t ƒ ‚ d S( N( R ( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt is_locked8 s c C s
t ƒ ‚ d S( s- return the mount point or None if not mountedN( R ( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt get_mount_point; s c C s
t ƒ ‚ d S( s- return True if lock is successfully acquired.N( R ( R ( ( s4 /usr/share/PackageKit/helpers/yum/yumMediaManager.pyt lock? s c C s
t ƒ ‚ d S( s<