#NEWLINE# def get_relations( self , cursor , table_name ) : #NEWLINE# #INDENT# '\n        Returns a dictionary of {field_name: (field_name_other_table, other_table)}\n        representing all relationships to the given table.\n        ' #NEWLINE# constraints = self . get_key_columns ( cursor , other_field ) #NEWLINE# relations = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( my_fieldname , other_table , other_field ) in constraints : #NEWLINE# #INDENT# relations [ my_fieldname ] = ( other_field , other_table ) #NEWLINE# #UNINDENT# return relations