Пример #1
0
def index_(request):
    page = define.common_page_start(request.userid,
                                    options=["homepage"],
                                    title="Home")
    page.append(
        define.render("etc/index.html", index.template_fields(request.userid)))
    return Response(define.common_page_end(request.userid, page))
Пример #2
0
def index_(request):
    page = define.common_page_start(request.userid,
                                    title="Home",
                                    canonical_url="/")
    page.append(
        define.render("etc/index.html", index.template_fields(request.userid)))
    return Response(define.common_page_end(request.userid, page))
Пример #3
0
 def GET(self):
     now = time.time()
     page = define.common_page_start(self.user_id,
                                     options=["homepage"],
                                     title="Home")
     page.append(
         define.render(template.etc_index,
                       index.template_fields(self.user_id)))
     return define.common_page_end(self.user_id, page, now=now)
Пример #4
0
def index_(request):
    page = define.common_page_start(request.userid, options=["homepage"], title="Home")
    page.append(define.render("etc/index.html", index.template_fields(request.userid)))
    return Response(define.common_page_end(request.userid, page))
Пример #5
0
 def GET(self):
     now = time.time()
     page = define.common_page_start(self.user_id, options=["homepage"], title="Home")
     page.append(define.render("etc/index.html", index.template_fields(self.user_id)))
     return define.common_page_end(self.user_id, page, now=now)