Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def list_all_photo(bucket,size=100, rs=None, prefix=None, limit=None):
    photos = []
    if rs is None:
        rs = qiniu.rsf.Client()
    marker = None
    err = None
    while err is None:
        ret, err = rs.list_prefix(bucket, prefix=prefix, limit=limit, marker=marker)
        marker = ret.get('marker', None)
        for item in ret['items']:
            photos.append(("http://" + conf.qiniu_domain + "/" + item['key'], get_image_preview(item['key'], size)))
            pass
    if err is not qiniu.rsf.EOF:
        # ????
        pass
    return photos
        


src/t/o/tolog-HEAD/index.py   tolog(Download)
    def GET(self, alb_name = ''):
        render = web.template.render(templates_root, globals=t_globals)
        photos = util.list_all_photo(conf.qiniu_bucket, 335)
        return render.photo(photos)