Exemplo n.º 1
0
 def get(self,page):
     index=0 if page=="" else int(page)
     images=methods.getAllImages(index)
     prev,next=methods.getPageing(len(images), index)
     tags=methods.getAllTags()
     template_value={"images":images[:24],"prev":prev,"next":next,"tags":tags}
     self.render('views/index.html', template_value)
Exemplo n.º 2
0
 def get(self, page):
     index = 0 if page == "" else int(page)
     images = methods.getAllImages(index)
     prev, next = methods.getPageing(len(images), index)
     template_value = {
         "images": images[:10],
         "prev": prev,
         "next": next,
         "logout": users.create_logout_url("/")
     }
     self.render('views/index.html', template_value)
Exemplo n.º 3
0
 def get(self, page):
     index = 0 if page == "" else int(page)
     images = methods.getAllImages(index)
     prev, next = methods.getPageing(len(images), index)
     template_value = {"images": images[:24], "prev": prev, "next": next}
     self.render('views/index.html', template_value)
Exemplo n.º 4
0
 def get(self,page):
     index=0 if page=="" else int(page)
     images=methods.getAllImages(index)
     prev,next=methods.getPageing(len(images), index)
     template_value={"images":images[:10],"prev":prev,"next":next, "logout":users.create_logout_url("/")}
     self.render('views/index.html', template_value)
Exemplo n.º 5
0
 def get(self, page):
     index = 0 if page == "" else int(page)
     images = methods.getAllImages(index)
     prev, next = methods.getPageing(len(images), index)
     template_value = {"images": images[:48], "prev": prev, "next": next}
     self.render("views/index.html", template_value)