Guest User

Untitled

a guest
Oct 20th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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)
Add Comment
Please, Sign In to add comment