Beispiel #1
0
    def get(self, resource):
        resource = str(resource)
        users.get_session(self.request)

        temp = loader.get_template("index.html")
        hub = main_pagehub.pagehub()
        content = hub.get_page(self, resource)
        cont = Context({"content": content, "user": users.currentUser})
        result = temp.render(cont)
        self.response.headers['Content-Type'] = "text/html"
        self.response.out.write(result)
Beispiel #2
0
    def get(self, resource):
        resource = str(resource)
        users.get_session(self.request)



        temp = loader.get_template("index.html")
        hub = main_pagehub.pagehub()
        content = hub.get_page(self, resource)
        cont = Context({"content": content, "user": users.currentUser})
        result = temp.render(cont)
        self.response.headers['Content-Type'] = "text/html"
        self.response.out.write(result)
Beispiel #3
0
 def get(self, resource):
     users.get_session(self.request)
     self.response.headers["Content-Type"] = "text/html"
     self.response.out.write(main_pagehub.pagehub().get_page(self, resource))
Beispiel #4
0
 def get(self, resource):
     users.get_session(self.request)
     self.response.headers["Content-Type"] = "text/html"
     self.response.out.write(main_pagehub.pagehub().get_page(
         self, resource))