Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # modules/objects.py
- from gluon import *
- request = current.request
- class Search(object):
- @staticmethod
- def show(db):
- search = db(db.listing.title==request.args(0)).select(db.listing.ALL)
- items = []
- for person in search:
- items.append(DIV(A(person.first_name, _href=URL('listing', args=person.id))))
- return CAT(*items)
Add Comment
Please, Sign In to add comment