#NEWLINE# def get_content( self , name , context ) : #NEWLINE# #INDENT# '\n        Get the content of a template hook. Used internally by the hook\n        templatetag.\n\n        If the referenced hook name has not been manually registered and there\n        are no hooks attached to it, a warning is issued.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# signal = self . _registry [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# message = ( "There are no connected functions for the hook '%s'." % name ) #NEWLINE# warnings . warn ( message , RuntimeWarning ) #NEWLINE# return '' #NEWLINE# #UNINDENT# content = [ ] #NEWLINE# signal . send ( sender = signal , context = context , content = content ) #NEWLINE# return '\n' . join ( content )