Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorAnton Leherbauer2012-01-10 09:03:04 +0000
committerAnton Leherbauer2012-01-10 09:03:49 +0000
commit0274cd2d87349af3abdb566ec259fbdee480e97f (patch)
treeaf1e5dd9e93e577e380d6e9ccaa0bfda4c4a34cf /python
parent15ea57ef8689b9aeba83cd5d7befd900ea2f8ae4 (diff)
downloadorg.eclipse.tcf-0274cd2d87349af3abdb566ec259fbdee480e97f.tar.gz
org.eclipse.tcf-0274cd2d87349af3abdb566ec259fbdee480e97f.tar.xz
org.eclipse.tcf-0274cd2d87349af3abdb566ec259fbdee480e97f.zip
TCF Python: Fix bogus MemoryProxy._toContextArray
Diffstat (limited to 'python')
-rw-r--r--python/src/tcf/services/remote/MemoryProxy.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/src/tcf/services/remote/MemoryProxy.py b/python/src/tcf/services/remote/MemoryProxy.py
index 10de25cff..ebf8a2420 100644
--- a/python/src/tcf/services/remote/MemoryProxy.py
+++ b/python/src/tcf/services/remote/MemoryProxy.py
@@ -1,5 +1,5 @@
# *******************************************************************************
-# * Copyright (c) 2011 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -211,10 +211,10 @@ class ChannelEventListener(channel.EventListener):
args = channel.fromJSONSequence(data)
if name == "contextAdded":
assert len(args) == 1
- self.listener.contextAdded(_toContextArray(args[0]))
+ self.listener.contextAdded(_toContextArray(self.service, args[0]))
elif name == "contextChanged":
assert len(args) == 1
- self.listener.contextChanged(_toContextArray(args[0]))
+ self.listener.contextChanged(_toContextArray(self.service, args[0]))
elif name == "contextRemoved":
assert len(args) == 1
self.listener.contextRemoved(args[0])
@@ -227,9 +227,11 @@ class ChannelEventListener(channel.EventListener):
self.service.channel.terminate(x)
-def _toContextArray(o):
+def _toContextArray(svc, o):
if o is None: return None
- return map(MemContext, o)
+ ctx = []
+ for m in o: ctx.append(MemContext(svc, m))
+ return ctx
def _toSizeArray(o):
if o is None: return None

Back to the top