Пример #1
0
def latest_images():
  last_batch= web.query("select max(batch) as value from images")[0]
  #web.tempredirect(config.base_url+uihelper.build_link((("batch", last_batch.value),)))
  index.browser().GET("batch%s" % ( last_batch.value))
Пример #2
0
def rss_latest_images():
  last_batch= web.query("select max(batch) as value from images")[0]
  index.browser().GET("batch%s/RSS" % ( last_batch.value))
Пример #3
0
def random_image():
  rand_img= web.query("select id  from images order by rand() limit 0,1")[0]
  #web.tempredirect("%simage%s" % (config.base_url, rand_img.id))
  index.browser().GET("image%s" % ( rand_img.id))