3
6ßL]7  ã               @   s<   d Z ddlmZmZmZ G dd„ deƒZG dd„ deƒZdS )z¶ Defines the ITemplateDataContext interface for accessing a named collection
    of data that can be bound to a templatized object when converting it to a
    'live' set of objects.
é    )Ú	InterfaceÚListÚStrc               @   s8   e Zd ZdZeZeZeeƒZeeƒZ	dd„ Z
dd„ ZdS )ÚITemplateDataContextzÂ Defines the ITemplateDataContext interface for accessing a named
        collection of data that can be bound to a templatized object when
        converting it to a 'live' set of objects.
    c             C   s   dS )an   Returns the data value with the specified *name*. Raises a
            **ITemplateDataContextError** if *name* is not defined as a data
            value in the context.

            Parameters
            ----------
            name : A string specifying the name of the context data value to
                be returned.

            Returns
            -------
            The data value associated with *name* in the context. The type of
            the data is application dependent.

            Raises **ITemplateDataContextError** if *name* is not associated
            with a data value in the context.
        N© )ÚselfÚnamer   r   úN/tmp/pip-install-5sebvq2j/apptools/apptools/template/itemplate_data_context.pyÚget_data_context_value1   s    z+ITemplateDataContext.get_data_context_valuec             C   s   dS )a\   Returns the **ITemplateDataContext** value associated with the
            specified *name*. Raises **ITemplateDataContextError** if *name* is
            not defined as a data context in the context.

            Parameters
            ----------
            name : A string specifying the name of the data context to be
                returned.

            Returns
            -------
            The **ITemplateDataContext** associated with *name* in the context.

            Raises **ITemplateDataContextError** if *name* is not associated
            with a data context in the context.
        Nr   )r   r   r   r   r	   Úget_data_contextD   s    z%ITemplateDataContext.get_data_contextN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Zdata_context_pathZdata_context_namer   Zdata_context_valuesZdata_contextsr
   r   r   r   r   r	   r      s   r   c               @   s   e Zd ZdZdS )ÚITemplateDataContextErrorzY The exception class associated with the **ITemplateDataContext**
        interface.
    N)r   r   r   r   r   r   r   r	   r   Z   s   r   N)r   Z
traits.apir   r   r   r   Ú	Exceptionr   r   r   r   r	   Ú<module>   s   ;