def _get_aliases(context, data_dict):
 res_id = data_dict['resource_id']
 alias_sql = sqlalchemy.text(u'SELECT name FROM "_table_metadata" WHERE alias_of = :id')
 results = context['connection'].execute(alias_sql, id=res_id).fetchall()
 return [x[0] for x in results]

def _get_aliases ( context , data_dict ) : res_id = data_dict [ 'resource_id' ] alias_sql = sqlalchemy . text ( u'SELECT name FROM "_table_metadata" WHERE alias_of = :id' ) results = context [ 'connection' ] . execute ( alias_sql , id = res_id ) . fetchall ( ) return [ x [ 0 ] for x in results ]
get a list of aliases for a resource .