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)
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))
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))