Permalink
Browse files

Fix missed UTC converstion in Python MythXML class.

  • Loading branch information...
wagnerrp committed Sep 1, 2012
1 parent e4c6e5d commit 5b1a6c377b1e6c9b222ee6c2bd703bd7c8bc1bca
Showing with 1 addition and 20 deletions.
  1. +1 −20 mythtv/bindings/python/MythTV/methodheap.py
@@ -1113,25 +1113,6 @@ def __init__(self, backend=None, port=None, db=None):
raise MythDBError(MythError.DB_SETTING,
backend+': BackendStatusPort')
- def getServDesc(self):
- """
- Returns a dictionary of valid pages, as well as input and output
- arguments.
- """
-
- #TODO - handle namespaces better
- tree = self._queryTree('GetServDesc')
- index = tree.tag.rindex('}')+1
- find = lambda e,c: e.find('%s%s' % (tree.tag[:index], c))
-
- for a in find(tree, 'actionList'):
- act = [find(a,'name').text, {'in':[], 'out':[]}]
- for arg in find(a, 'argumentList'):
- argname = find(arg, 'name').text
- argdirec = find(arg, 'direction').text
- act[1][argdirec].append(argname)
- yield act
-
def getHosts(self):
"""Returns a list of unique hostnames found in the settings table."""
return self._request('Myth/GetHosts')\
@@ -1177,7 +1158,7 @@ def getProgramDetails(self, chanid, starttime):
Returns a Program object for the matching show.
"""
starttime = datetime.duck(starttime)
- args = {'ChanId': chanid, 'StartTime': starttime.isoformat()}
+ args = {'ChanId': chanid, 'StartTime': starttime.utcisoformat()}
return Program.fromJSON(
self._request('Guide/GetProgramDetails', **args)\
.readJSON()['Program'],

0 comments on commit 5b1a6c3

Please sign in to comment.