[mythtv] Notice: Python binding rewrite
Raymond Wagner
raymond at wagnerrp.com
Fri Jan 1 09:10:50 UTC 2010
On 1/1/2010 2:56 AM, Jean-Yves Avenard wrote:
> Hi
>
> 2010/1/1 Raymond Wagner<raymond at wagnerrp.com>:
>
>> As stated in the above links, mythvideo database access is the only section
>> completely altered. MythTV got split and renamed to MythBE, but all the
>> functions are still there. Access to the settings table can be wrapped and
>> used in the old format with a couple lines of code. The old logging code was
>> almost non-existent.
>>
>> If need be, I have wrappers for all of the old mythvideo functions, but
>> chose not to include them.
>>
> Keeping backward compatibily through the use of wrappers to the new
> APIs is a great solution IMHO.
>
This wraps most of the old functions. MythDB.getAllSettings got left
out (I can't think of a good reason to use it), as have
MythVideo.get/setField (I figure those were never called directly).
MythVideo.rmMetadata was slightly altered to remove the isinstance use.
Also left out were the MythVideo.get<field>ID calls, as those values are
never accessed, merely 'joined' in the SQL call. For the same reason
the MythVideo.set<field> calls do not return IDs.
Additionally, MythData.py line 789 needs to have '(id,)' as the second
argument in place of 'id' for these to work.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: MythFunc.py
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20100101/b58a289f/attachment.asc>
More information about the mythtv-dev
mailing list