ó
6j/Qc           @   s  d  Z  d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l	 m
 Z
 d „  Z d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d „  Z d e f d „  ƒ  YZ e e ƒ d e f d „  ƒ  Yƒ Z e e e ƒ d  e f d! „  ƒ  Yƒ Z e e ƒ d" „  ƒ Z d# „  Z e e ƒ d$ „  ƒ Z e e ƒ d% „  ƒ Z d& d9 d' „  ƒ  YZ d d( l m  Z  e  e d) ƒ Z! e! e _" d* „  Z# e e ƒ d+ e f d, „  ƒ  Yƒ Z$ e$ ƒ  Z% e e ƒ d- e f d. „  ƒ  Yƒ Z& e e
 ƒ d/ e f d0 „  ƒ  Yƒ Z' e e ƒ d1 e f d2 „  ƒ  Yƒ Z( e( d3 ƒ Z) e e ƒ d4 e f d5 „  ƒ  Yƒ Z* d6 e f d7 „  ƒ  YZ+ d d8 „ Z- d S(:   s-   Examples supporting Sphinx doctest snippets.
iÿÿÿÿN(   t	   Interface(   t   implementer(   t
   IInterface(   t   adapter(   t   ICc         C   s   t  j j d |  ƒ d  S(   Ns   %s
(   t   syst   stdoutt   write(   t   x(    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR      s    t	   ITestTypec           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR	      s   t   I1c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR       s   t   I2c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   #   s   t   I3c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   &   s   t   I4c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   )   s   t   IGIc           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   ,   s   t   IQIc           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   /   s   t   ISIc           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   2   s   t   ISIIc           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   5   s   c          G   s   d  S(   N(    (   t   args(    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   noop8   s    t   Uc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s   | |  _  d  S(   N(   R
   (   t   selft   name(    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   __init__=   s    c         C   s   d |  j  j |  j f S(   Ns   %s(%s)(   t	   __class__R
   (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   __repr__@   s    (   R
   R   R   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   ;   s   	t   U1c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   C   s   t   U12c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   G   s   c         C   s   t  d |  ƒ d  S(   Ns
   handle1 %s(   R   (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   handle1K   s    c          G   s   t  d t |  ƒ ƒ d  S(   Ns   handle2 (   R   t   repr(   t   objects(    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   handle2O   s    c         C   s   t  d |  ƒ d  S(   Ns
   handle3 %s(   R   (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   handle3R   s    c         C   s   t  d |  ƒ d  S(   Ns
   handle4 %s(   R   (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   handle4V   s    t   GlobalRegistryc           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR$   Z   s   (   t   GlobalAdapterRegistryt   adaptersc           C   s   t  j t d ƒ d  S(   NR&   (   t   baseR   R$   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt
   clear_base`   s    t   Obc           B   s   e  Z d  „  Z RS(   c         C   s   d S(   Ns   <instance Ob>(    (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   f   s    (   R
   R   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR)   d   s   t   Ob2c           B   s   e  Z d  „  Z RS(   c         C   s   d S(   Ns   <instance Ob2>(    (   R   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   n   s    (   R
   R   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR*   l   s   t   Ob3c           B   s   e  Z RS(    (   R
   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR+   q   s   t   Compc           B   s   e  Z d  „  Z RS(   c         C   s   | |  _  d  S(   N(   t   context(   R   R-   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   w   s    (   R
   R   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR,   u   s   i   t   Comp2c           B   s   e  Z d  „  Z RS(   c         C   s   | |  _  d  S(   N(   R-   (   R   R-   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   ~   s    (   R
   R   R   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR.   |   s   t   ConformsToIComponentLookupc           B   s    e  Z d  Z d „  Z d „  Z RS(   sA   Allow a dummy sitemanager to conform/adapt to `IComponentLookup`.c         C   s   | |  _  d  S(   N(   t   sitemanager(   R   R0   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR   …   s    c         C   s'   d d l  m } | | k r# |  j Sd S(   sA   This method is specified by the adapter PEP to do the adaptation.iÿÿÿÿ(   t   IComponentLookupN(   t   zope.component.interfacesR1   R0   (   R   t	   interfaceR1   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   __conform__ˆ   s    (   R
   R   t   __doc__R   R4   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyR/   ‚   s   	c         C   sa   d d l  m } d d  l } d d l m } d d l m } | ƒ  | ƒ  | d | j ƒ ƒ  d  S(   Niÿÿÿÿ(   t	   XMLConfig(   t   setUp(   t   tearDowns	   meta.zcml(   t   zope.configuration.xmlconfigR6   t   zope.componentt   zope.component.testingR7   R8   t	   component(   t   testR6   t   zopeR7   R8   (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt	   clearZCML   s    (    (.   R5   R   t   zope.interfaceR    R   t   zope.interface.interfacesR   t   zope.component._declarationR   t   zope.component.testfiles.viewsR   R   R	   R   R   R   R   R   R   R   R   R   t   objectR   R   R   R   R!   R"   R#   R$   t   zope.component.globalregistryR%   R'   R&   R(   R)   t   obR*   R+   R,   t   compR.   R/   t   NoneR?   (    (    (    sA   /usr/lib/python2.7/site-packages/zope/component/tests/examples.pyt   <module>   sZ   						