1 """
   2     MoinMoin - Blog Macro
   3 
   4     Copyright (c) 2002 by Ken MacLeod <ken@bitsko.slc.ut.us>
   5     All rights reserved, see COPYING for details.
   6 
   7     Display a "Create new Blog" link.
   8 
   9     $Id$
  10 """
  11 
  12 import time
  13 from MoinMoin.Page import Page
  14 
  15 def execute(macro, args):
  16     blog_name = macro.formatter.page.page_name
  17     return Page(blog_name + time.strftime('/%Y-%m-%d/%H:%M')).link_to('[Create new Blog entry]')

MoinMoin: macro/NewBlogEntry.py (last edited 2007-10-29 19:16:27 by localhost)