[mythtv-commits] Ticket #6885: Python updates

MythTV mythtv at cvs.mythtv.org
Sat Aug 22 08:36:46 UTC 2009


#6885: Python updates
---------------------------------------------------+------------------------
 Reporter:  Raymond Wagner <raymond at wagnerrp.com>  |       Owner:  awithers
     Type:  enhancement                            |      Status:  new     
 Priority:  minor                                  |   Milestone:  0.22    
Component:  Bindings - Python                      |     Version:  head    
 Severity:  low                                    |     Mlocked:  0       
---------------------------------------------------+------------------------
 MythLog.py is rewritten.  It now uses the MythTV severity levels, and will
 log to the stdout and/or database logs.

 MythLog(priority=WARNING, module='pythonbindings', mode=3) takes three
 optional arguments.  Priority sets the minimum severity that will be
 logged.  Module sets an identifier used in the log.  Mode sets where
 things are logged (1=to stdout, 2=to database, 3=to both). All instances
 of old logging format in the bindings have been replaced.

 MythLog.setPriority(priority) changes priority on an initialized logging
 class.

 MythLog.all|debug|info|...(message,detail='') logs a message, with an
 optional argument for additional information.

 [[br]][[br]][[br]][[br]]

 Adds cleaning of videometadata(genres, country, cast) tables in
 MythVideo.rmMetadata from [21427].  Also updates MythVideo.pruneMetadata
 to use above function.

 [[br]][[br]][[br]][[br]]

 Reimplements GetStorageDirs from #5546.[[br]]
 MythDB.getStorageGroup(group=None, host=None) takes optional groupname and
 hostname for filtering, and returns a tuple of dictionaries with the
 fields 'id','group','host', and 'dirname'.

 [[br]][[br]][[br]][[br]]

 Also merges in non-overlapping updates from #4985[[br]]
 New functions MythDB.getChannels(), MythDB.getChannel(chanid), and
 MythDB.getGuideData(chanid,date) return new Channel and Guide
 classes.[[br]]
 New functions MythTV.getExpiring(), MythTV.getUptime(), and
 MythTV.getLastGuideData()

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/6885>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list