Attachment 'LoginHint.py'

Download

   1 """
   2     MoinMoin - LoginHint
   3     
   4     Usage:
   5         [[LoginHint(Please login using the link at the top border!)]]
   6 
   7     @copyright: 2006 Thomas Waldmann
   8     @license: GNU GPL, see COPYING for details
   9 """
  10 hint_style = "background-color: orange; text-align: center;"
  11 
  12 def execute(macro, args):
  13     request = macro.request
  14     if request.user.valid:
  15         hint = ''
  16     else:
  17         f = request.formatter
  18         hint = (f.div(1, id="LoginHint", style=hint_style) +
  19                 f.text(args) +
  20                 f.div(0))
  21     return hint

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] (2007-12-22 21:21:35, 1.0 KB) [[attachment:LoginHint-1.6.py]]
  • [get | view] (2006-03-06 18:09:04, 0.5 KB) [[attachment:LoginHint.py]]
 All files | Selected Files: delete move to page copy to page

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