python completion triggers RequestData
In pvpython and in python shell, asking for completion trigger the RequestData of the targeted object.
To reproduce in pvpython:
Python 3.9.1 (default, Dec 13 2020, 11:55:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from paraview.simple import *
>>> s = Sphere()
>>> s.( 26.482s) [paraview ] vtkSphereSource.cxx:69 WARN| vtkSphereSource (0x556286e79310): request data called
(I press tab to ask for members of s
and I previously put a vtkWarningMacro in vtkSphereSource::RequestData)
--- a/Filters/Sources/vtkSphereSource.cxx
+++ b/Filters/Sources/vtkSphereSource.cxx
@@ -61,6 +61,7 @@ vtkSphereSource::vtkSphereSource(int res)
int vtkSphereSource::RequestData(vtkInformation* vtkNotUsed(request),
vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector)
{
+ vtkWarningMacro("SphereSource::RequestData");
// get the info object
vtkInformation* outInfo = outputVector->GetInformationObject(0);
Edited by Nicolas Vuaille