[Paraview] Issue with PV 3.7 python bindings: bug or feature?

Karl König kkoenig11 at web.de
Wed Oct 7 13:20:36 EDT 2009


Hi,

in short:
When using the 'label' keyword in server manager XML and its value contains parentheses, the according object is missing in python. Is this a bug or a feature?

longer version including recipe:
Consider ParaView3/Examples/Plugins/Writer, replace its CMakeLists.txt with the version attached such that cmake does not complain any more if the plugin is built standalone against a PV build using CVS version as of last night and give one of the *VectorProperty tags a label, extend e.g.:

      <IntVectorProperty name="Compression"
                         command="SetCompression"
                         number_of_elements="1"
                         default_values="1">

to

      <IntVectorProperty name="Compression"
                         command="SetCompression"
                         number_of_elements="1"
                         default_values="1"
                         label="Compression (foo is advised)">

compile, invoke pvpython and run the following:
>>> from paraview.simple import *; paraview.servermanager.LoadPlugin("./libMyTiffWriter.so"); connection = servermanager.Connect(); dir(servermanager.writers.MyTIFFWriter)

If the label contains parentheses, the list generated by 'dir(servermanager.writers.MyTIFFWriter)' will be one item short: there is no "Compression" any more.
Is this a known restriction to the use of 'label' in server manager XML?

Thanks
Karl
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de



More information about the ParaView mailing list