Package elisa :: Package plugins :: Package good :: Package fspot :: Module fspot_media :: Class FspotDB
[hide private]
[frames] | no frames]

Class FspotDB

source code


Retrieves tags and videos from the F-spot sqlite database

Instance Methods [hide private]
 
__init__(self, db_path='/home/phil/.gnome2/f-spot/photos.db')
Attempt a connection to the database
source code
 
get_version(self) source code
 
get_tag_with_id(self, tag_id) source code
list
get_tags(self, tag_id='frontend')
Return a list of tags [(tag id, tag name), (..)]
source code
 
get_photos(self, tag)
Return a list of photos with the given tag...
source code

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

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

Class Variables [hide private]
  log_category = 'fspot_db'

Inherited from extern.log.log.Loggable: logCategory

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, db_path='/home/phil/.gnome2/f-spot/photos.db')
(Constructor)

source code 
Attempt a connection to the database
Overrides: core.log.Loggable.__init__

get_photos(self, tag)

source code 
Return a list of photos with the given tag
    [(diectory_path, filename), (..)]

@param tag: the tag id 
@type tag:  int
@rtype:     list