def req_req_drivers(row):
 if hasattr(row, 'req_req'):
  row = row.req_req
 try:
  req_ref = row.req_ref
  type = row.type
 except AttributeError:
  return None
 if (type == 1):
  s3db = current.s3db
  stable = s3db.inv_send
  query = ((stable.deleted != True) & (stable.req_ref == req_ref))
  drivers = current.db(query).select(stable.driver_name, stable.driver_phone, stable.vehicle_plate_no)
  if drivers:
   drivers = [('%s %s %s' % ((driver.driver_name or ''), (driver.driver_phone or ''), (driver.vehicle_plate_no or ''))) for driver in drivers]
   return ','.join(drivers)
 return current.messages['NONE']

def req_req_drivers ( row ) : if hasattr ( row , 'req_req' ) : row = row . req_req try : req_ref = row . req_ref type = row . type except AttributeError : return None if ( type == 1 ) : s3db = current . s3db stable = s3db . inv_send query = ( ( stable . deleted != True ) & ( stable . req_ref == req_ref ) ) drivers = current . db ( query ) . select ( stable . driver_name , stable . driver_phone , stable . vehicle_plate_no ) if drivers : drivers = [ ( '%s %s %s' % ( ( driver . driver_name or '' ) , ( driver . driver_phone or '' ) , ( driver . vehicle_plate_no or '' ) ) ) for driver in drivers ] return ',' . join ( drivers ) return current . messages [ 'NONE' ]
show the driver(s) details .