Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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