;ň
ÚCˇ=c           @   s   d  Z  d Z d k Z d k Z d k Z d k Z d k l Z l Z d k l	 Z	 l
 Z
 d k l Z l Z d e f d     YZ d S(   s(   
Docutils component-related transforms.
s   reStructuredTextN(   s   nodess   utils(   s   ApplicationErrors	   DataError(   s	   Transforms   TransformErrors   Filterc           B   s   t  Z d  Z d Z d   Z RS(   sA  
    Include or exclude elements which depend on a specific Docutils component.

    For use with `nodes.pending` elements.  A "pending" element's dictionary
    attribute ``details`` must contain the keys "component" and "format".  The
    value of ``details['component']`` must match the type name of the
    component the elements depend on (e.g. "writer").  The value of
    ``details['format']`` is the name of a specific format or context of that
    component (e.g. "html").  If the matching Docutils component supports that
    format or context, the "pending" element is replaced by the contents of
    ``details['nodes']`` (a list of nodes); otherwise, the "pending" element
    is removed.

    For example, the reStructuredText "meta" directive creates a "pending"
    element containing a "meta" element (in ``pending.details['nodes']``).
    Only writers (``pending.details['component'] == 'writer'``) supporting the
    "html" format (``pending.details['format'] == 'html'``) will include the
    "meta" element; it will be deleted from the output of all other writers.
    i  c         C   sx   |  i } | i d } | i d } |  i i i | } | i
 |  o | i i | | i d  n | i i |  d  S(   Ns	   components   formats   nodes(   s   selfs	   startnodes   pendings   detailss   component_types   formats   documents   transformers
   componentss	   components   supportss   parents   replaces   remove(   s   selfs	   components   component_types   pendings   format(    (    sS   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/transforms/components.pys   apply.   s    	(   s   __name__s
   __module__s   __doc__s   default_prioritys   apply(    (    (    sS   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/transforms/components.pys   Filter   s    (   s   __doc__s   __docformat__s   syss   oss   res   times   docutilss   nodess   utilss   ApplicationErrors	   DataErrors   docutils.transformss	   Transforms   TransformErrors   Filter(   s   TransformErrors   Filters	   DataErrors   ApplicationErrors   utilss	   Transforms   __docformat__s   syss   res   times   nodess   os(    (    sS   /mit/golem/arch/share/lib/python2.3/site-packages/docutils/transforms/components.pys   ?	   s   				