#NEWLINE# @ classmethod #NEWLINE# def super_key( cls , supertable , default = None ) : #NEWLINE# #INDENT# '\n            Get the name of the key for a super-entity\n\n            @param supertable: the super-entity table\n        ' #NEWLINE# if ( ( supertable is None ) and default ) : #NEWLINE# #INDENT# return default #NEWLINE# #UNINDENT# if isinstance ( supertable , str ) : #NEWLINE# #INDENT# supertable = cls . table ( supertable ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return supertable . _id . name #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# raise SyntaxError ( ( 'No id-type key found in %s' % supertable . _tablename ) )