def get_cap_alert_addresses_opts():
 T = current.T
 gtable = current.s3db.pr_group
 rows = current.db((gtable.deleted != True)).select(gtable.id, gtable.name)
 return [(row.id, s3_str(T(row.name))) for row in rows]

def get_cap_alert_addresses_opts ( ) : T = current . T gtable = current . s3db . pr_group rows = current . db ( ( gtable . deleted != True ) ) . select ( gtable . id , gtable . name ) return [ ( row . id , s3_str ( T ( row . name ) ) ) for row in rows ]
get the pr_group .