Attachment 'css-action.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 css action
4 """
5
6 from MoinMoin import config
7 from MoinMoin.Page import Page
8
9 def execute(pagename, request):
10 if not request.user.may.read(pagename):
11 Page(request, pagename).send_page(request)
12 return
13 mime = 'text/css'
14 request.http_headers(["Content-type: %s;charset=%s" % (mime,config.charset)])
15 page = Page(request, pagename)
16 text = page.get_raw_body()
17 text = page.encodeTextMimeType(text)
18 request.write(text)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.