wiki: Ensure wiki page not found gives a 404. #699

Closed
wants to merge 2 commits into from

2 participants

@andre-d

Fixes #657 and #658

@andre-d

Updated to fix #658

@spladug spladug commented on an outdated diff Mar 21, 2013
r2/r2/controllers/wiki.py
@@ -105,9 +105,15 @@ def GET_wiki_page(self, pv, page_name):
page, version, version2 = pv
if not page:
- if c.render_style in extensions.API_TYPES:
- self.handle_error(404, 'PAGE_NOT_CREATED')
- return WikiNotFound(page=page_name).render()
+ api = c.render_style in extensions.API_TYPES
@spladug
reddit member
spladug added a note Mar 21, 2013

how about is_api for the variable name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@spladug
reddit member

💅

@andre-d

💇

@spladug
reddit member

🐟

@andre-d andre-d closed this May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment