def details():
 tablename = 'tour_details'
 s3db.table(tablename)
 table = s3db.tour_details
 return s3_rest_controller('tour', 'details')

def details ( ) : tablename = 'tour_details' s3db . table ( tablename ) table = s3db . tour_details return s3_rest_controller ( 'tour' , 'details' )
return dict with details of first item found in output .