示例#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