#NEWLINE# def create_tooltip( self ) : #NEWLINE# #INDENT# "Creates a short_sigstring that does not include package names for\n        use with the tooltip. Note, however, that such sigstrings\n        can't be used to reconstruct a spec. They should only be used\n        for human-readable purposes.\n        " #NEWLINE# self . _short_sigstring = ( ( '(' + ',' . join ( ( d . name for d in self . descriptors ( ) ) ) ) + ')' ) #NEWLINE# if ( self . type in [ 'input' , 'output' ] ) : #NEWLINE# #INDENT# port_string = self . type . capitalize ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# port_string = 'Invalid' #NEWLINE# #UNINDENT# depth = ( ( ' (depth %s)' % self . depth ) if self . depth else '' ) #NEWLINE# self . _tooltip = ( '%s port %s\n%s%s' % ( port_string , self . name , self . _short_sigstring , depth ) )