<html><head><style> body {height: 100%; color:#000000; font-size:12pt; font-family:Times New Roman;}</style></head><body>Thank you Seb,<br> So, If I understand well, I will charge the file in 2 step, the first one is to charge a file in plugin with "myPlugin.py", then use the plugin to charge the file in ParaViewWeb?<br> So, in your reply<br><span> </span><br> "def load(file):<br> return simple.OpenDataFile('/your-path/' + file)"<br><br><span> the parameter ('nameOfFile.mhd') will be parsed directly to OpenDataFile('/my-path/'+file) and become ('/my-path/nameOfFile.mhd')</span><br> I wonder if I'm right. Sorry for this question but I just want to be sured. <br><br>----- Original Message -----<br>From: Sebastien Jourdain <sebastien.jourdain@kitware.com><br>To: Tuan Ha Tran <tuan-ha.tran@insa-lyon.fr><br>Cc: paraview@paraview.org<br>Sent: Fri, 11 May 2012 19:32:08 +0200 (CEST)<br>Subject: Re: [Paraview] OpenDataFile with ParaViewWeb JavaScript Console<br><br>You can create your own python plugin that will append the proper path<br>in front of the provided name.<br><br>=== myPlugin.py ===<br>from paraview import simple<br><br>def load(file):<br> return simple.OpenDataFile('/your-path/' + file)<br><br>=======<br><br>In JS you'll do something like that<br><br>var plugin = paraview.getPlugin('myPlugin');<br>var reader = plugin.load('NameOfFile.mhd');<br><br>But you should figure out why the server crashed by looking at the log<br>if you can. The full path should have worked.<br><br>Seb<br><br>On Fri, May 11, 2012 at 11:31 AM, Tuan Ha Tran<br><tuan-ha.tran@insa-lyon.fr> wrote:<br>> Hi everybody,<br>> I have a question to ask. I use ParaViewWeb JavaScript Console to load<br>> an image file to ParaViewWeb, I use the followed code "var reader<br>> =paraview.OpenDataFile({filename:"../NameOfFile"});" I tried with the<br>> absolute path of my PC (which is normally not the good solution) and get the<br>> "ServerDownException"<br>> So, if I want ParaViewWeb to look at in the web-apps of tomcat server,<br>> which path I have to use? As I know, if the file is in the same location as<br>> the PWConsole.war, we can access to it directly using {filename:"hola.mhd"}<br>> (for example)<br>> Anyone have an idea?<br>> Thank in advance.<br>><br>> _______________________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> http://www.kitware.com/opensource/opensource.html<br>><br>> Please keep messages on-topic and check the ParaView Wiki at:<br>> http://paraview.org/Wiki/ParaView<br>><br>> Follow this link to subscribe/unsubscribe:<br>> http://www.paraview.org/mailman/listinfo/paraview<br>><br><br></tuan-ha.tran@insa-lyon.fr></body></html>