def get_person_request_ticket(pid= -1, tid=None): ''' Returns the list of request tickets associated to a person. @param pid: person id @param tid: ticket id, to select if want to retrieve only a particular one @return: tickets [[],[]] ''' if pid < 0: return [] else: return dbapi.get_request_ticket(pid, ticket_id=tid)