def register_route(self, app):
        if "url" not in self.params["options"]:
            raise Exception("Component does not have a URL property")

        if not hasattr(self.route_func, "__call__"):
            raise Exception("No app route function supplied")

        app.add_url_rule(self.params["options"]["url"],
            self.params["options"]["url"],
            self.route_func)
Clear display
dataset/ETHPy150Open stitchfix/pyxley/pyxley/ui.py/UIComponent.register_route--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/south/plugins/io/display/base_display.py/DisplayBase.clear