def pr_instance_type(pe_id):
 if pe_id:
  etable = current.s3db.pr_pentity
  row = current.db((etable.pe_id == pe_id)).select(etable.instance_type, limitby=(0, 1)).first()
  if row:
   return row.instance_type
 return None

def pr_instance_type ( pe_id ) : if pe_id : etable = current . s3db . pr_pentity row = current . db ( ( etable . pe_id == pe_id ) ) . select ( etable . instance_type , limitby = ( 0 , 1 ) ) . first ( ) if row : return row . instance_type return None
get the instance type for a pe .