Exemplo n.º 1
0
    def init_app(self, app, *panels):
        Service.init_app(self, app)

        with app.app_context():
            self.setup_blueprint(app)
            for panel in panels:
                self.register_panel(panel)
Exemplo n.º 2
0
  def init_app(self, app, *panels):
    Service.init_app(self, app)

    with app.app_context():
      self.setup_blueprint(app)
      for panel in panels:
        self.register_panel(panel)
Exemplo n.º 3
0
 def init_app(self, app):
     Service.init_app(self, app)
     app.register_jinja_loaders(jinja2.PackageLoader(__name__))
Exemplo n.º 4
0
 def init_app(self, app):
   Service.init_app(self, app)
   app.register_jinja_loaders(jinja2.PackageLoader(__name__, 'templates'))