view MoinMoin/action/Save.py @ 1756:d276e28dfc10

optimize code, save_raw moved to Page.py
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Tue, 30 Jan 2007 22:35:05 +0100
parents 88fa1ffd2574
children c4eb073a9cca
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - Action macro for saving a page

    MODIFICATION HISTORY:
        @copyright: 2007 by Reimar Bauer 
        @license: GNU GPL, see COPYING for details.
"""

from MoinMoin.Page import Page

def execute(pagename, request):
    if request.user.may.read(pagename):
        thispage = Page(request, pagename)
        thispage.save_raw()