Exemplo n.º 1
0
 def not_page_exists(url):
     return not bool(model.get_page_by_url(url))
Exemplo n.º 2
0
 def GET(self, url):
     """ View single page """
     page = model.get_page_by_url(url)
     if not page:
         raise web.seeother('/new?url=%s' % web.websafe(url))
     return render.view(page)
Exemplo n.º 3
0
 def not_page_exists(self, url):
     return not bool(model.get_page_by_url(url))
Exemplo n.º 4
0
 def GET(self, url):
     """ View single page """
     page = model.get_page_by_url(url)
     if not page:
         raise web.seeother('/new?url=%s' % web.websafe(url))
     return render.view(page)
Exemplo n.º 5
0
 def GET(self):
     """ show article named index """
     page = model.get_page_by_url("index")
     return render.view(page)
Exemplo n.º 6
0
 def not_page_exists(url):
     """
     Arguments:
     - `url`:
     """
     return not bool(model.get_page_by_url(url))