Attachment 'MoinMoin.action.info.patch'

Download

   1 --- info_.py	2009-12-21 13:52:44 -0200
   2 +++ info.py	2009-12-21 14:27:11 -0200
   3 @@ -200,18 +200,20 @@
   4  
   5      request.theme.send_title(_('Info for "%s"') % (title, ), page=page)
   6      menu_items = [
   7 -        (_('Show "%(title)s"') % {'title': _('Revision History')},
   8 -         {'action': 'info'}),
   9 -        (_('Show "%(title)s"') % {'title': _('General Page Infos')},
  10 -         {'action': 'info', 'general': '1'}),
  11 -        (_('Show "%(title)s"') % {'title': _('Page hits and edits')},
  12 -         {'action': 'info', 'hitcounts': '1'}),
  13 +        (_('Revision History'),    {'action': 'info'}),
  14 +        (_('General Page Infos'),  {'action': 'info', 'general': '1'}),
  15 +        (_('Page hits and edits'), {'action': 'info', 'hitcounts': '1'}),
  16      ]
  17      request.write(f.div(1, id="content")) # start content div
  18      request.write(f.paragraph(1))
  19 -    for text, querystr in menu_items:
  20 -        request.write("[%s] " % page.link_to(request, text=text, querystr=querystr, rel='nofollow'))
  21 +    request.write(_("Please choose:"))
  22      request.write(f.paragraph(0))
  23 +    request.write(f.bullet_list(1))
  24 +    for text, querystr in menu_items:
  25 +        request.write(f.listitem(1))
  26 +        request.write(page.link_to(request, text=text, querystr=querystr, rel='nofollow'))
  27 +        request.write(f.listitem(0))
  28 +    request.write(f.bullet_list(0))
  29  
  30      show_hitcounts = int(request.values.get('hitcounts', 0)) != 0
  31      show_general = int(request.values.get('general', 0)) != 0

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] (2009-12-21 16:47:49, 1.4 KB) [[attachment:MoinMoin.action.info.patch]]
  • [get | view] (2009-12-21 16:55:14, 12.1 KB) [[attachment:current.png]]
  • [get | view] (2009-12-21 16:55:30, 13.4 KB) [[attachment:implementation.png]]
  • [get | view] (2010-01-24 03:36:10, 11.0 KB) [[attachment:vbar.png]]
 All files | Selected Files: delete move to page copy to page

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