Class e.p.d.m.MediaScanner(ResourceProvider):

Part of elisa.plugins.database.media_scanner View In Hierarchy

Asynchronous working media scanner.
Instance Variablesstorethe store for the data (type: storm.twisted.storm.DeferredStore )
Line # Kind Name Docs
71 Method __init__ Undocumented
105 Method initialize Initialize the component.
161 Method clean Clean the component.
180 Method create_schema Undocumented
184 Method running_get Undocumented
187 Method running_set Undocumented
196 Method get If the filename is statistic you receive the
206 Method put put another uri into the queue and start the scanning process if it is
89 Method _scan_directories Undocumented
134 Method _initialize_dbus Undocumented
146 Method _clean_dbus Undocumented
237 Method _update_stat Undocumented
249 Method _count_files Undocumented
307 Method _file_found Undocumented
312 Method _cleanup_deleted_files Undocumented
315 Method _scan Undocumented
353 Method _rescan Undocumented
359 Method _reset_auto_rescan Undocumented
368 Method _reschedule_scanned Undocumented
383 Method _scan_recursive Undocumented

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
138 Method delete Delete a Resource represented by a URI.

Inherited from Component (via ResourceProvider):

Line # Kind Name Docs
83 Class PathDescriptor Undocumented
95 Class Method create Create and initialize the component.
153 Method name__get Undocumented
158 Method name__set Undocumented
def __init__(self):
Undocumented
def _scan_directories(self):
Undocumented
def initialize(self):
Initialize the component.

This method is called by Component.create to finish the initialization of a component.

Returnsa deferred called when a component is fully initialized (type: twisted.internet.defer.Deferred )
def _initialize_dbus(self, result=None):
Undocumented
def _clean_dbus(self):
Undocumented
def clean(self):
Clean the component.

This method is called when a component is not needed anymore to clean its state.

Returnsa deferred called when the component has finished cleaning its state (type: twisted.internet.defer.Deferred )
def create_schema(self):
Undocumented
def running_get(self):
Undocumented
def running_set(self, value):
Undocumented
def get(self, uri, context_model=None):
If the filename is statistic you receive the elisa.plugins.database.scanner_models.Statistic for this scanner
def put(self, source_uri, container_uri, context_model=None, section=None):
put another uri into the queue and start the scanning process if it is not yet running
Parameterssection (type: str )
Instance Variablessectionthe name of the section relevant to the content that is put.
def _update_stat(self, result, model, stat):
Undocumented
def _count_files(self, path):
Undocumented
def _file_found(self, model, stat):
Undocumented
def _cleanup_deleted_files(self, result, scan_resource):
Undocumented
def _scan(self, result=None):
Undocumented
def _rescan(self):
Undocumented
def _reset_auto_rescan(self, restart=False):
Undocumented
def _reschedule_scanned(self):
Undocumented
def _scan_recursive(self, scan_resource):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-04-27 17:55:12.