diff options
author | Frederic Leger | 2014-03-14 13:10:07 +0000 |
---|---|---|
committer | Frederic Leger | 2014-03-14 13:10:07 +0000 |
commit | 2e7bcc06b8fcd54154b250e2be05cebc8e5d9546 (patch) | |
tree | 6b58a6620354f17dffe1408028a05822ca701043 /python/src/tcf/services/remote/ProcessesV1Proxy.py | |
parent | cf9ea44940c41174357fdc22dd7f6b3cd8f3c7fa (diff) | |
download | org.eclipse.tcf-2e7bcc06b8fcd54154b250e2be05cebc8e5d9546.tar.gz org.eclipse.tcf-2e7bcc06b8fcd54154b250e2be05cebc8e5d9546.tar.xz org.eclipse.tcf-2e7bcc06b8fcd54154b250e2be05cebc8e5d9546.zip |
Python - Added Processes_v1 service update.
The getCapabilities() method has been added to the Processes_V1 service along with the values it uses.
The services documentation has been updated and can now be generated using sphinx.
Diffstat (limited to 'python/src/tcf/services/remote/ProcessesV1Proxy.py')
-rw-r--r-- | python/src/tcf/services/remote/ProcessesV1Proxy.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/python/src/tcf/services/remote/ProcessesV1Proxy.py b/python/src/tcf/services/remote/ProcessesV1Proxy.py index 883b9d457..2eab77963 100644 --- a/python/src/tcf/services/remote/ProcessesV1Proxy.py +++ b/python/src/tcf/services/remote/ProcessesV1Proxy.py @@ -1,5 +1,5 @@ # ***************************************************************************** -# * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others. +# * Copyright (c) 2011-2014 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 @@ -39,3 +39,25 @@ class ProcessesV1Proxy(ProcessesProxy.ProcessesProxy, ctx = ProcessesProxy.ProcessContext(service, args[1]) done.doneStart(self.token, error, ctx) return StartCommand().token + + def getCapabilities(self, contextId, done): + done = self._makeCallback(done) + service = self + + class GetCapabilitiesCommand(Command): + + def __init__(self): + super(GetCapabilitiesCommand, + self).__init__(service.channel, service, + "getCapabilities", (contextId,)) + + def done(self, error, args): + capabilityData = None + if not error: + assert len(args) == 2 + error = self.toError(args[0]) + capabilityData = args[1] + + done.doneGetCapabilities(self.token, error, capabilityData) + + return GetCapabilitiesCommand().token |