def __init__(self, database): """ Connect to a db backend hosting the given database. """ Loggable.__init__(self) self._params = {'database': database, 'check_same_thread': True} self.connect()
def __init__(self, path=None): Loggable.__init__(self) self._local_music_library_id = None self._local_video_library_id = None default_db_path = os.path.expanduser("~/.config/banshee-1/banshee.db") self._db_path = path or default_db_path
def __init__(self, url, stream_id, content_type=MPEG_MIME): Resource.__init__(self) Loggable.__init__(self) self.url = url self.stream_id = stream_id self.content_type = content_type