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.
  • [get | view] (2005-12-10 02:54:33, 2.1 KB) [[attachment:CSV.py]]
  • [get | view] (2006-10-10 10:42:36, 1.1 KB) [[attachment:box.py]]
  • [get | view] (2005-11-21 02:56:09, 0.5 KB) [[attachment:css-action.py]]
  • [get | view] (2005-11-21 02:56:33, 0.8 KB) [[attachment:css-macro.py]]
  • [get | view] (2005-11-13 12:21:38, 0.9 KB) [[attachment:patch-1.5b2-Form.py]]
  • [get | view] (2005-11-13 12:13:19, 0.8 KB) [[attachment:patch-1.5b2-wikiform.py]]
  • [get | view] (2006-05-12 12:59:21, 2.6 KB) [[attachment:todo.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.