B
    Ef!                 @   sb   d dl Z d dlZd dlT e  ejejd  d  e	  e
  d dlT d dlmZ dddZdS )	    N)*z/config_load.py)commit_all_dsFc                s    fdd}|S )Nc                s    fdd}|S )Nc                 s   t dt tj}dt_t   tjjddt_	t
 $ t
  | | W d Q R X W d Q R X  rnt  nt  |t_W d Q R X d S )N/Fz.CmfPerson:00000000-0000-0000-0000-000000000001)id)APPZtest_request_contextconfigRAISE_LAZYLOADZpreprocess_requestmodelsZ	CmfPersongetgZcurrent_personZcmfutilZdisable_aclZdisable_notifyr   Zrollback_all_ds)argskwargsr   )commitfunc /opt/eva-app/patch/include.pywrapper   s    z/app_context.<locals>.decorator.<locals>.wrapperr   )r   r   )r   )r   r   	decorator   s    zapp_context.<locals>.decoratorr   )r   r   r   )r   r   app_context   s    r   )F)ossysZ
cmf.manageZinstall_traceback_email_notifyr   r   Zfrom_pyfileZcmf__path__Zstart_viewsZinit_dsZcmf.includeZcmf.data_providers.baser   r   r   r   r   r   <module>   s   