def put(self, nodeId):
        data = self.getBodyAsJSON()
        try:
            paused = data['paused']
        except __HOLE__:
            raise Http400('Missing entry: "paused".')
        except TypeError:
            raise Http400('Missing entry: "paused".')
        else:
            nodeId = int(nodeId)
            node = self._findNode(nodeId)
            node.setPaused(paused)
        self.writeCallback("Paused flag changed.")
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/webservice/nodes.py/NodePausedResource.put