#NEWLINE# @ must_be_valid_project #NEWLINE# @ must_be_contributor_or_public #NEWLINE# @ must_have_addon ( 'wiki' , 'node' ) #NEWLINE# def project_wiki_id_page( auth , wid , **kwargs ) : #NEWLINE# #INDENT# node = ( kwargs [ 'node' ] or kwargs [ 'project' ] ) #NEWLINE# wiki_page = node . get_wiki_page ( id = wid ) #NEWLINE# if wiki_page : #NEWLINE# #INDENT# return redirect ( node . web_url_for ( 'project_wiki_view' , wname = wiki_page . page_name , _guid = True ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise WIKI_PAGE_NOT_FOUND_ERROR