예제 #1
0
파일: xtralinks.py 프로젝트: nh/imgc
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
파일: xtralinks.py 프로젝트: nh/imgc
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
파일: xtralinks.py 프로젝트: nh/imgc
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))