Class e.p.d.d.DatabaseParser(Component):

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

No class docstring
Line # Kind Name Docs
67 Method __init__ Undocumented
78 Method initialize Initialize the component.
112 Method load_processors Undocumented
136 Method clean Clean the component.
158 Method mark_deleted Undocumented
169 Method delete_files Delete file entries from the database that have the source set to the
198 Method query_model Undocumented
206 Method gst_process Undocumented
216 Method process Undocumented
274 Method pre_process Undocumented
310 Method post_process Undocumented
318 Method update_modification_time Undocumented
325 Method get_or_create get the object of the given klass with the primary value set to
349 Method in_or_add Undocumented
367 Method make_sure_of_music_album Undocumented
374 Method add_artists Undocumented
383 Method set_tag Undocumented
388 Method parse_metadata_into_model Undocumented
406 Method parse_into_track Undocumented
455 Method parse_into_video Undocumented
471 Method parse_into_image Undocumented
519 Method parse_tags Undocumented
103 Method _set_store Undocumented
107 Method _get_store Undocumented
238 Method _delay Undocumented
244 Method _commit Undocumented
251 Method _reset_autocommit_delay Undocumented
261 Method _autocommit Undocumented

Inherited from Component:

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.
def __init__(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 _set_store(self, store):
Undocumented
def _get_store(self):
Undocumented
def load_processors(result, 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 mark_deleted(self, source_path):
Undocumented
def delete_files(self, source_path, marked_only=True):
Delete file entries from the database that have the source set to the given source_path. If marked_only is set, only the file entries with the delete-marker are removed.
Parameterssource_paththe source path of the files (type: unicode )
marked_onlydelete only the file entries that are marked as deleted (type: bool )
Returnstriggered whenever the deletion is done (type: elisa.core.utils.cancellable_defer.CancellableDeferred )
def query_model(self, model, stat):
Undocumented
def gst_process(self, file, model, section):
Undocumented
def process(self, file, model, source):
Undocumented
def _delay(self, result_or_failure):
Undocumented
def _commit(self, result):
Undocumented
def _reset_autocommit_delay(self, result):
Undocumented
def _autocommit(self):
Undocumented
def pre_process(self, file, model):
Undocumented
def post_process(self, metadata, file, model):
Undocumented
def update_modification_time(self, result, file, new_time=None):
Undocumented
def get_or_create(self, klass, key, value, **optional_kw):
get the object of the given klass with the primary value set to c{value} or create it and add it to the database if it is not yet in the db.
def in_or_add(self, klass, key, value, reference_set):
Undocumented
def make_sure_of_music_album(self, result, album_name, release_date=None):
Undocumented
def add_artists(self, result, artist_names, artists_ref):
Undocumented
def set_tag(self, res, file, tag_name):
Undocumented
def parse_metadata_into_model(self, model, metadata, key_value_type):
Undocumented
def parse_into_track(self, track, metadata):
Undocumented
def parse_into_video(self, video, metadata):
Undocumented
def parse_into_image(self, image, metadata):
Undocumented
def parse_tags(self, metadata, file, section=''):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.