def pageedit(request): p = Pages() if request.method == 'GET': return p.edit_page(request) elif request.method == 'POST': return p.save_page(request)
def page(request): p = Pages() if request.method == 'GET': return p.view_page(request) elif request.method == 'POST': return p.create_page(request)
def pageview(request): p = Pages() if request.method == 'GET': return p.page_view(request)