#NEWLINE# def hook( self , subdir , callback ) : #NEWLINE# #INDENT# if ( subdir in self . callbacks ) : #NEWLINE# #INDENT# log . warning ( ( "The HTTP subdirectory `%s` was already hooked but has been claimed by another plugin (or maybe you reloaded the plugin and it didn't properly unhook. Forced unhook." % subdir ) ) #NEWLINE# #UNINDENT# self . callbacks [ subdir ] = self #NEWLINE# callback . doHook ( self , subdir )