#NEWLINE# @ classmethod #NEWLINE# def register_view_link( cls , identifier , view ) : #NEWLINE# #INDENT# "\n        Register a new view link\n        Newsletter.register_view_link('my_identifier',view_function)\n        " #NEWLINE# if ( identifier in cls . _view_links . keys ( ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# cls . _view_links [ identifier ] = view