コード例 #1
0
 def render_interstitial(self):
     track_screen("JaaS Login Wait")
     app.ui.set_header(title="Waiting")
     self.view = BootstrapWaitView(
         app=app, message="Logging in to JaaS. Please wait.")
     app.ui.set_body(self.view)
     self.__refresh()
コード例 #2
0
ファイル: gui.py プロジェクト: ops-sandy/conjure-up
 def render_interstitial(self):
     track_screen("Controller Login Wait")
     app.ui.set_header(title="Waiting")
     self.view = BootstrapWaitView(
         app=app, message="Logging in to model. Please wait.")
     app.ui.set_body(self.view)
     self.authenticating.set()
     app.loop.create_task(self._refresh())
     self._refresh()
コード例 #3
0
    def render(self):
        app.log.debug("Rendering bootstrap wait")

        self.view = BootstrapWaitView(
            app=app, message="Juju Controller is initializing. Please wait.")
        app.ui.set_header(title="Waiting")
        app.ui.set_body(self.view)

        app.bootstrap.running.add_done_callback(self.finish)
        self.__refresh()
コード例 #4
0
    def render(self, relations_scheduled_future):
        self.relations_scheduled_future = relations_scheduled_future
        track_screen("Bootstrap wait")
        app.log.debug("Rendering bootstrap wait")

        self.view = BootstrapWaitView(
            app=app, message="Juju Controller is initializing. Please wait.")
        app.ui.set_header(title="Waiting")
        app.ui.set_body(self.view)

        if app.bootstrap.running:
            app.bootstrap.running.add_done_callback(self.finish)
        self.__refresh()
コード例 #5
0
ファイル: gui.py プロジェクト: ops-sandy/conjure-up
    def render(self):
        track_screen("Bootstrap wait")
        app.log.debug("Rendering bootstrap wait")

        if app.is_jaas:
            bootstrap_stderr_path = None
        else:
            cache_dir = Path(app.config['spell-dir'])
            bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format(
                app.current_controller)
        view = BootstrapWaitView(
            app=app,
            message="Juju Controller is initializing. Please wait.",
            watch_file=bootstrap_stderr_path)
        app.ui.set_header(title="Waiting")
        app.ui.set_body(view)

        app.loop.create_task(self.refresh(view))
        app.loop.create_task(self.finish())
コード例 #6
0
    def render(self):
        track_screen("Bootstrap")

        if app.is_jaas or self.is_existing_controller():
            bootstrap_stderr_path = None
            msg = 'Model'
        else:
            cache_dir = Path(app.config['spell-dir'])
            bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format(
                app.current_controller)
            msg = 'Controller'

        view = BootstrapWaitView(
            app=app,
            message="Juju {} is initializing. Please wait.".format(msg),
            watch_file=bootstrap_stderr_path)
        app.ui.set_header(title="Waiting")
        app.ui.set_body(view)

        app.loop.create_task(self.run())
        app.loop.create_task(self.wait(view))
コード例 #7
0
    def render(self, relations_scheduled_future):
        self.relations_scheduled_future = relations_scheduled_future
        track_screen("Bootstrap wait")
        app.log.debug("Rendering bootstrap wait")

        if app.is_jaas:
            bootstrap_stderr_path = None
        else:
            cache_dir = Path(app.config['spell-dir'])
            bootstrap_stderr_path = cache_dir / '{}-bootstrap.err'.format(
                app.current_controller)
        self.view = BootstrapWaitView(
            app=app,
            message="Juju Controller is initializing. Please wait.",
            watch_file=bootstrap_stderr_path)
        app.ui.set_header(title="Waiting")
        app.ui.set_body(self.view)

        if app.bootstrap.running:
            app.bootstrap.running.add_done_callback(self.finish)
        self.__refresh()
コード例 #8
0
ファイル: gui.py プロジェクト: tomconte/conjure-up
 def render_interstitial(self):
     self.view = BootstrapWaitView(
         app=app, message="Logging in to VSphere. Please wait.")
     app.ui.set_body(self.view)
     self.authenticating.set()
     app.loop.create_task(self._refresh())