3 ,�WN# � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm Z dd lmZ dd lmZ ddl mZ ddlmZ dd lmZ ddlmZ yddlmZ W n ek r� ddlmZ Y nX daed9dd��Zdd� Zd:dd�Zeedfdd�Zeeddfdd�Zeedfdd�Zeeddfdd�Zd;dd�Zd<d d!�Z d"d#� Z!ed=d%d&��Z"ddl#Z$e$j%j%j&j'e"� d>d'd(�Z(d?d)d*�Z)d@d+d,�Z*dAd-d.�Z+e,� Z-dBd/d0�Z.dCd1d2�Z/d3d4� Z0dDd5d6�Z1dEd7d8�Z2dS )FzZope 3 Component Architecture � N)� Interface)� implementedBy)� providedBy)�IComponentArchitecture)�!IComponentRegistrationConvenience)�IFactory)�ComponentLookupError)�IComponentLookup)�_BLANK)� adaptedBy)�adapter)�adapts)�hookablec C sZ | dkr t dkrddlm a t S yt| �S tk rT } zt|j� �W Y dd}~X nX dS )z! See IComponentArchitecture. Nr )�base)r Zzope.component.globalregistryr � TypeErrorr �args)�context�error� r �/usr/lib/python3.6/_api.py�getSiteManager, s r c C s"