Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WikiPage(WikiHandler):
- def get(self, wikipath):
- url_path = self.request.path
- wikiarticle = db.GqlQuery("SELECT * FROM WikiArticle WHERE path = :1", url_path)
- if wikiarticle.get():
- self.response.write(wikiarticle)
- logging.info('%s', wikiarticle)
- else:
- self.response.write(wikiarticle)
- logging.info("Sorry, try again!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement