#NEWLINE# def _fk_colspec( fk , metadata_schema ) : #NEWLINE# #INDENT# "Implement a 'safe' version of ForeignKey._get_colspec() that\n    never tries to resolve the remote table.\n\n    " #NEWLINE# if ( metadata_schema is None ) : #NEWLINE# #INDENT# return fk . _get_colspec ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tokens = fk . _colspec . split ( '.' ) #NEWLINE# if ( len ( tokens ) == 2 ) : #NEWLINE# #INDENT# return ( '%s.%s' % ( metadata_schema , fk . _colspec ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return fk . _colspec