'Registers a report plugin for use in the GRR UI.'

def RegisterPlugin(self, report_plugin_cls):

    name = report_plugin_cls.__name__
    if (name in self.plugins):
        raise RuntimeError(("Can't    register    two    report    plugins    with    the    same    name.    In    particular,    can't    register    the    same    report    plugin    twice:    %r" % name))
    self.plugins[name] = report_plugin_cls
