def register_viewer(self, vclass):
        """Register a channel viewer with the reference viewer.
        `vclass` is the class of the viewer.
        """
        self.viewer_db[vclass.vname] = Bunch.Bunch(vname=vclass.vname,
                                                   vclass=vclass,
                                                   vtypes=vclass.vtypes)
def register_viewer ( self , vclass ) : self . viewer_db [ vclass . vname ] = Bunch . Bunch ( vname = vclass . vname , vclass = vclass , vtypes = vclass . vtypes )
Register a channel viewer with the reference viewer.
        `vclass` is the class of the viewer.