Пример #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()
Пример #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
Пример #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()
Пример #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
Пример #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
Пример #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