Ticket #8922: mythtv_database.patch

File mythtv_database.patch, 587 bytes (added by anonymous, 9 years ago)
  • bindings/python/MythTV/database.py

    old new  
    278278        DBData._evalwheredat(self, wheredat)
    279279        self._origdata = dict.copy(self)
    280280
    281     def __init__(self, data=None, db=None):
    282         DBData.__init__(self, data, db)
     281    def __init__(self, data=None, db=None, id=None):
     282        if id:
     283          DBData.__init__(self, id, db)
     284        else:
     285          DBData.__init__(self, data, db)
    283286
    284287    def _import(self, data=None):
    285288        if data is not None: