daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Oct 20th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # modules/objects.py
  2.  
  3. from gluon import *
  4. request = current.request
  5. class Search(object):
  6.     @staticmethod
  7.     def show(db):
  8.         search = db(db.listing.title==request.args(0)).select(db.listing.ALL)
  9.         items = []
  10.         for person in search:
  11.             items.append(DIV(A(person.first_name, _href=URL('listing', args=person.id))))
  12.        
  13.         return CAT(*items)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top