Exemplo n.º 1
0
 def GET(self, filing_id):
     limit = 50
     page = int(web.input(page=0).page)
     if filing_id:
         f = schema.lob_filing.select(where='id=$filing_id', limit=limit, offset=page*limit, vars=locals())
     else:
         f = schema.lob_filing.select(limit=limit, offset=page*limit)
     return render.lob_filings(f,limit)
Exemplo n.º 2
0
    def GET(self, filing_id):
        limit = 50
        try:
            filing_id = int(filing_id or 0)
            page = int(web.input(page=0).page)
        except ValueError:
            raise web.notfound()
        if filing_id:
            f = schema.lob_filing.select(where='id=$filing_id', limit=limit, offset=page*limit, vars=locals())
        else:
            f = schema.lob_filing.select(limit=limit, offset=page*limit)

        if not f: raise web.notfound()
        return render.lob_filings(f, limit)
Exemplo n.º 3
0
    def GET(self, filing_id):
        limit = 50
        try:
            filing_id = int(filing_id or 0)
            page = int(web.input(page=0).page)
        except ValueError:
            raise web.notfound()
        if filing_id:
            f = schema.lob_filing.select(where='id=$filing_id',
                                         limit=limit,
                                         offset=page * limit,
                                         vars=locals())
        else:
            f = schema.lob_filing.select(limit=limit, offset=page * limit)

        if not f: raise web.notfound()
        return render.lob_filings(f, limit)