'ZuiPythonComponent' object has no attribute 'WireDisplay'

How i can solve this problem and find which components need input.WireDisplay or directly obj.WireDisplay?
Panel for example, the wiredisplay can changed by use: if obj.Name == “Panel”

from Grasshopper.Kernel import GH_ParamWireDisplay
import Grasshopper as gh

wire_display = [GH_ParamWireDisplay.default,

objects = ghenv.Component.OnPingDocument().Objects

for obj in objects:
#if obj.Name == "Brep":
obj.WireDisplay = wire_display[wire_type]
if gh.Kernel.IGH_Component in list(type(obj).__bases__):
    for input in obj.Params.Input:
        input.WireDisplay = wire_display[wire_type]

I think the problem solved