Sindbad~EG File Manager
3
Ĝg�D � @ s d dl Z d dlZd dlmZ d dlmZ d dlmZ ddl m
Z
ddl mZ ddlm
Z
dd lmZ dd
lmZ ejr�ddlmZ ddlmZ dd
lmZ e� ZG dd� d�Zeed�dd�Zejejd�dd�Zed�dd�Zed�dd�ZG dd� d�Z G dd� d�Z!dS )� N)�update_wrapper)�
TracebackType)�
HTTPException� )�_app_ctx_stack)�_request_ctx_stack)�appcontext_popped)�appcontext_pushed)�AfterRequestCallable)�Flask)�SessionMixin)�Requestc @ s� e Zd ZdZeejd�dd�Zeejdd�dd�Zedd�d d
�Z deej
ej ejd�dd
�Zefeejejd�dd�Z
deejejd�dd�Zeed�dd�Zeje d�dd�Zed�dd�ZdS )�_AppCtxGlobalsa� A plain object. Used as a namespace for storing data during an
application context.
Creating an app context automatically creates this object, which is
made available as the :data:`g` proxy.
.. describe:: 'key' in g
Check whether an attribute is present.
.. versionadded:: 0.10
.. describe:: iter(g)
Return an iterator over the attribute names.
.. versionadded:: 0.10
)�name�returnc C s. y
| j | S tk
r( t|�d �Y nX d S )N)�__dict__�KeyError�AttributeError)�selfr � r �*/tmp/pip-build-fsllo_ck/Flask/flask/ctx.py�__getattr__/ s
z_AppCtxGlobals.__getattr__N)r �valuer c C s || j |<