Skip to content

Commit

Permalink
Fix missed UTC converstion in Python MythXML class.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Sep 1, 2012
1 parent e4c6e5d commit 5b1a6c3
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions mythtv/bindings/python/MythTV/methodheap.py
Expand Up @@ -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')\
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 5b1a6c3

Please sign in to comment.