Exemplo n.º 1
0
    def setup(self):
        self.register_blueprint(hello, url_prefix="/hello")

        connect_event("after_navigation", hello_world)
        connect_event("after_navigation", hello_world2)

        connect_event("tmpl_before_content", inject_hello_world)
        connect_event("tmpl_before_content", inject_hello_world2)

        connect_event("tmpl_navigation_last", inject_navigation_link)
Exemplo n.º 2
0
    def setup(self):
        self.register_blueprint(hello, url_prefix="/hello")

        connect_event("after_navigation", hello_world)
        connect_event("after_navigation", hello_world2)

        connect_event("tmpl_before_content", inject_hello_world)
        connect_event("tmpl_before_content", inject_hello_world2)

        connect_event("tmpl_navigation_last", inject_navigation_link)
Exemplo n.º 3
0
 def setup(self):
     self.register_blueprint(news, url_prefix="/news")
     connect_event("before-first-navigation-element", inject_news_link)
Exemplo n.º 4
0
 def setup(self):
     self.register_blueprint(portal, url_prefix="/portal")
     connect_event("before-first-navigation-element", inject_portal_link)
Exemplo n.º 5
0
 def setup(self):
     self.register_blueprint(portal, url_prefix="/portal")
     connect_event("before-first-navigation-element", inject_portal_link)
Exemplo n.º 6
0
 def setup(self):
     self.register_blueprint(album, url_prefix="/album")
     connect_event("show_album", show_album)