Back to index

moin  1.9.0~rc2
Save.py
Go to the documentation of this file.
00001 # -*- coding: iso-8859-1 -*-
00002 """
00003     MoinMoin - Action for saving a page
00004 
00005     @copyright: 2007 MoinMoin:ReimarBauer
00006     @license: GNU GPL, see COPYING for details.
00007 """
00008 
00009 from MoinMoin.Page import Page
00010 
00011 def execute(pagename, request):
00012     if not request.user.may.read(pagename):
00013         Page(request, pagename).send_page()
00014     else:
00015         rev = request.rev or 0
00016         Page(request, pagename, rev=rev).send_raw(content_disposition='attachment')