Sindbad~EG File Manager
�
�
�e�) � �� � d dl mZmZmZmZmZmZmZmZ d dl m
Z
mZ d dlm
Z
d dlZ ee
j d dd�� � Z ee
j d dd�� � Z G d
� d� � ZdS )� )�
create_engine�MetaData�Table�insert�select�update�delete�text)�and_�or_)�appN�DATABASE_URIi� i )� pool_size�pool_recycle�DATABASE_URI_CONFc � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )�
AddonModelc � � t � � | _ t d| j t �� � | _ t d| j t �� � | _ t d| j t �� � | _ t d| j t �� � | _ t d| j t �� � | _ t d| j t �� � | _ t d| j t �� � | _
t d | j t �� � | _ t d| j t �� � | _ t d
| j t �� � | _ d S # t $ r}t |� � Y d }~d S d }~ww xY w)N�
conference)�
autoload_with� societies�addons�addon_types�
user_types�
m_app_type�mail_setting�society_applications�mail_templates)r �metar �enginer r r r r r r r r � Exception�print)�self�es �d/home/numerotech/public_html/conference.numerotech.com/food_kit_scan_badges/core/model/AddonModel.py�__init__zAddonModel.__init__ sF � �
��z�z�4�9�$�\�4�9�F�S�S�S�4�?�$�[�$�)�6�R�R�R�4�>�$�X�d�i�v�N�N�N�4�;�$�]�4�9�F�S�S�S�4��$�\�$�)�6�R�R�R�4�?�$�\�4�9�F�S�S�S�4�?�$�^�T�Y�f�U�U�U�4��$�%;�T�Y�V\�]�]�]�4��$�]�D�I�V�T�T�T�4��$�%5�d�i�f�U�U�U�4����� � � � ���8�8�8�8�8�8�8�8�8��������s �EE! �!
F�+F � Fc �� � t � � � 5 }t d� � }|� |� � � � � }|rd� |D � � nd cd d d � � S # 1 swxY w Y d S )Nz+select * from conference where is_active=1;c �6 � g | ]}t |j � � ��S � ��dict�_mapping��.0�rs r% �
<listcomp>z,AddonModel.get_conf_data.<locals>.<listcomp> �"