Exemplo n.º 1
0
 def GET(self):
     subject = get_lending_library(web.ctx.site,
                                   details=True,
                                   inlibrary=inlibrary.get_library()
                                   is not None,
                                   limit=24)
     return render_template("borrow/index", subject, stats=LoanStats())
Exemplo n.º 2
0
 def GET(self):
     rand = random.randint(0, 9999)
     sort = "random_%d desc" % rand
     subject = get_readable_books(web.ctx.site,
                                  details=True,
                                  limit=24,
                                  sort=sort)
     return render_template("borrow/read",
                            subject,
                            stats=LoanStats(),
                            rand=rand)
Exemplo n.º 3
0
 def GET(self):
     rand = random.randint(0, 9999)
     sort = "random_%d desc" % rand
     subject = get_lending_library(web.ctx.site,
                                   details=True,
                                   inlibrary=inlibrary.get_library()
                                   is not None,
                                   limit=24,
                                   sort=sort)
     return render_template("borrow/index",
                            subject,
                            stats=LoanStats(),
                            rand=rand)