[Paraview-developers] paraview/web 4 pipeline
kyr
akyrieleis at gmail.com
Wed Nov 13 08:56:01 EST 2013
In a file AK_protocol.py (which is in same dir as protocol.py) I have defined
a class with a dummy member:
import types
import logging
import inspect
from time import time
# import RPC annotation
from autobahn.wamp import exportRpc
# import paraview modules.
from paraview import simple, servermanager
from paraview.web import helper
from vtk.web import protocols as vtk_protocols
from vtkWebCorePython import vtkWebInteractionEvent
from paraview.web import protocols
class ParaViewWebMapManip(ParaViewWebProtocol):
@exportRpc("mapManip")
def mapManip(self):
"""
RPC callback to reset camera.
"""
return false
If I then import that in a modified pv_web_visualiser.py using
from paraview.web import AK_protocol as AKprotocol
and
self.registerVtkWebProtocol(AKprotocol.ParaViewWebMapManip())
then I get an exception from Jetty when the page containing the rendered
data is opened.
What is wrong ?
Many thanks
k.
--
View this message in context: http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618p2628.html
Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com.
More information about the Paraview-developers
mailing list