Package elisa :: Package core :: Module media_directory_helper :: Class MediaDirectoryHelper

Class MediaDirectoryHelper

source code


Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_linux_media_directory(self) source code
 
get_windows_media_directory(self)
return in a dict the multimedia directories in default encoding
source code
 
get_directories(self, media_type) source code
 
refresh_directory_list(self, media_type=None) source code
 
toggle_directory_installation(self, uri, media_type) source code
 
add_directory(self, uri, media_type) source code
 
remove_directory(self, uri, media_type) source code
bool
is_a_media_source(self, uri)
Test whether a given URI is listed as a known media source.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

is_a_media_source(self, uri)

source code 

Test whether a given URI is listed as a known media source. All media types are searched.

Parameters:
Returns: bool
True if the URI is a known media source, False otherwise