<div dir="ltr">I don't know, you tell me.<div><br></div><div>What is the exception when you run the command line directly in your terminal?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 6:56 AM, kyr <span dir="ltr"><<a href="mailto:akyrieleis@gmail.com" target="_blank">akyrieleis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In a file AK_protocol.py (which is in same dir as protocol.py) I have defined<br>
a class with a dummy member:<br>
<br>
<br>
import types<br>
import logging<br>
import inspect<br>
from time import time<br>
<br>
# import RPC annotation<br>
from autobahn.wamp import exportRpc<br>
<br>
# import paraview modules.<br>
from paraview import simple, servermanager<br>
from paraview.web import helper<br>
from vtk.web import protocols as vtk_protocols<br>
from vtkWebCorePython import vtkWebInteractionEvent<br>
from paraview.web import protocols<br>
<br>
class ParaViewWebMapManip(ParaViewWebProtocol):<br>
<br>
@exportRpc("mapManip")<br>
def mapManip(self):<br>
"""<br>
RPC callback to reset camera.<br>
"""<br>
return false<br>
<br>
<br>
<br>
If I then import that in a modified pv_web_visualiser.py using<br>
<br>
from paraview.web import AK_protocol as AKprotocol<br>
<br>
and<br>
<br>
self.registerVtkWebProtocol(AKprotocol.ParaViewWebMapManip())<br>
<br>
then I get an exception from Jetty when the page containing the rendered<br>
data is opened.<br>
<br>
What is wrong ?<br>
<br>
Many thanks<br>
<br>
k.<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618p2628.html" target="_blank">http://the-unofficial-paraview-developers-forum.34153.x6.nabble.com/paraview-web-4-pipeline-tp2618p2628.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the The Unofficial ParaView Developers Forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
</div></div></blockquote></div><br></div>