-ν
ήτ½<c       s€     d  Z    d k Z d k Z d k Z d k Z  d k l Z  d k l Z  d k	 l
 Z
   d Z ! d Z " d e e f Z $ e i e  d  Z d S(	   sΠ  
    MoinMoin - Include macro

    Copyright (c) 2000, 2001 by Richard Jones <richard@bizarsoftware.com.au>
    Copyright (c) 2000, 2001, 2002 by Jόrgen Hermann <jh@web.de>
    All rights reserved, see COPYING for details.

    This macro includes the formatted content of the given page, following
    recursive includes if encountered. Cycles are detected!

    Usage:
        [[Include(pagename,heading,level)]]

        pagename    Name of the page to include
        heading     Text for the generated heading (optional)
        level       Level (1..5) of the generated heading (optional)

    Examples:
        [[Include(FooBar)]]  -- include the text of FooBar in the current paragraph.
        [[Include(FooBar, )]] -- add a H1 of 'Foo Bar' followed by the text
        [[Include(FooBar, , 2]] -- add a H2 of 'Foo Bar'
        [[Include(FooBar, 'All about Foo Bar', 2]] -- add a H2 of 'All about Foo Bar'

    $Id: Include.py,v 1.8 2002/04/17 22:19:10 jhermann Exp $
N(   s   user(   s   Page(   s   _s>   (?P<heading>,)\s*(|(?P<hquote>[\'"])(?P<htext>.+?)(?P=hquote))s   ,\s*(?P<level>\d+)s   ^(?P<name>[^,]+)(%s(%s)?)?$c    sΰ  $ % d } ( | i |  } ) | o * d t d  | f Sn - |  i i d  o |  i d i	 d j } . | i d  }	 / |  i i } 0 t | d  o 1 h  | _ n 2 | i i |	  o 3 | d |	 f } n 4 t |	 d	 |  i i |  i  }
 5 | i |
 _ 8 t } 9 | i d
  oͺ : | i d  p
 |
 i   } ; d } < | i d  o = t | i d   } n > | o  ? | |  i i | |  } n& A | |
 i |  i i | |   } n D | i i |	 d  d | i |	 <H t i } I t i    t _ J |
 i! |  i d d K | t i i"   } L | t _ O | i |	 d j o P | i |	 d | i |	 <n S | i |	 =V | p | o' W | |
 i t d  |	 f  } n Z | Sd  S(   Ns    s(   <p><strong class="error">%s</strong></p>s   Invalid include arguments "%s"!s   actions   prints   names   _macroInclude_pagelistsI   <p><strong class="error">Recursive include of "%s" forbidden</strong></p>s	   formatters   headings   htexti   s   leveli    s   content_onlys   <small>[goto %s]</small>(#   s   rets   args_res   matchs   texts   argss   _s   macros   forms   has_keys   values
   print_modes   groups   inc_names	   formatters   pages	   this_pages   hasattrs   _macroInclude_pagelists   Pages	   __class__s   requests   inc_pages   Nones   levels   split_titles   headings   ints   link_tos   gets   syss   stdouts	   cStringIOs   StringIOs	   send_pages   getvalue(   s   macros   texts   args_res   stdouts   levels   argss   rets	   this_pages
   print_modes   inc_names   inc_pages   heading(    (    sR   /home/ai3/gregs/moin-install/lib/python2.2/site-packages/MoinMoin/macro/Include.pys   execute$ sD   	,$		
 )#'(   s   __doc__s   syss   strings   res	   cStringIOs   MoinMoins   users   MoinMoin.Pages   Pages   MoinMoin.i18ns   _s   _arg_headings
   _arg_levels   _args_re_patterns   compiles   execute(   s	   cStringIOs   executes   strings
   _arg_levels   _args_re_patterns   syss   res   users   _arg_headings   Pages   _(    (    sR   /home/ai3/gregs/moin-install/lib/python2.2/site-packages/MoinMoin/macro/Include.pys   ? s   '		