Ticket #4697: mythtv_python_bindings_global_fix.diff
File mythtv_python_bindings_global_fix.diff, 1.2 KB (added by , 16 years ago) |
---|
-
bindings/python/MythTV/MythVideo.py
3 3 MythVideo database. 4 4 """ 5 5 6 import MythDB 6 from MythDB import * 7 7 from MythLog import * 8 8 9 9 log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythVideo') … … 16 16 """ 17 17 Initialise the MythDB connection. 18 18 """ 19 self.db = MythDB .MythDB()19 self.db = MythDB() 20 20 21 21 def pruneMetadata(self): 22 22 """ -
bindings/python/MythTV/MythTV.py
15 15 import code 16 16 from datetime import datetime 17 17 18 import MythDB 18 from MythDB import * 19 19 from MythLog import * 20 20 21 21 log = MythLog(CRITICAL, '#%(levelname)s - %(message)s', 'MythTV') … … 52 52 A connection to a MythTV backend. 53 53 """ 54 54 def __init__(self, conn_type='Monitor'): 55 self.db = MythDB .MythDB(sys.argv[1:])55 self.db = MythDB(sys.argv[1:]) 56 56 self.master_host = self.db.getSetting('MasterServerIP') 57 57 self.master_port = int(self.db.getSetting('MasterServerPort')) 58 58