import sys

# --------------------------------------------------------
# ＣＳＶからＥＸＣＥＬ変換　定数定義
# --------------------------------------------------------
class _csv_excel_const:
    class csv_excel_const_error(TypeError):
        pass
    def __init__(self): 

        self.__dict__['FILE']            = 'file'
        self.__dict__['MAX_ROWS']        = 'maxrows'
        self.__dict__['MAX_COLS']        = 'maccols'

        self.__dict__['DETAIL_NAME']     = 'detailName'
        self.__dict__['USER_ID']         = 'userId'
        self.__dict__['USER_NAME']       = 'userName'
        self.__dict__['REQUEST_TIME']    = 'requestTime'
        self.__dict__['TABLE_STYLE']     = 'tableStyle'
        self.__dict__['TABLE_NAME']      = 'tableName'
        self.__dict__['OUTPUT_FILE']     = 'outputFile'
        self.__dict__['FONT_NAME']       = 'fontName'
        self.__dict__['FONT_SIZE']       = 'fontSize'
        
        self.__dict__['COLUMNS']         = 'columns'
        self.__dict__['DEFAULT_TYPE']    = 'defaultType'
        self.__dict__['CSV_HEADER']      = 'csvHeader'
        self.__dict__['WINDOW_LOCK_ROW'] = 'windowLockRow'
        self.__dict__['WINDOW_LOCK_COL'] = 'windowLockCol'
        
        self.__dict__['COLUMN']          = 'column'
        self.__dict__['COLS']            = 'cols'
        self.__dict__['COL_NO']          = 'colNo'
        self.__dict__['DATA_TYPE']       = 'dataType'
        self.__dict__['EDIT_FORMAT']     = 'editFormat'

        self.__dict__['BND_OUTPUT_FILE'] = 'outputFile'
        self.__dict__['BND_BIND']        = 'bind'
        self.__dict__['BND_CSV_FILE']    = 'csvFile'
        self.__dict__['BND_DEF_FILE']    = 'defFile'

        self.__dict__['BND_DEF_HEAD']    = 'defHead'
        self.__dict__['BND_DEF_ITEM']    = 'defItem'

        self.__dict__['BND_SHEET_NAME']  = 'sheetName'
        self.__dict__['BND_CSV_ROWS']    = 'numRows'
        self.__dict__['BND_CSV_COLS']    = 'numCols'

        # =====( メール)========================================
        self.__dict__['MAIL']                   =   'mail'
        self.__dict__['MAIL_REQUEST_TIME']      =   'requestTime'
        self.__dict__['MAIL_TO_ADDRESS']        =   'toAddress'
        self.__dict__['MAIL_CC_ADDRESS']        =   'ccAddress'
        self.__dict__['MAIL_BCC_ADDRESS']       =   'bccAddress'
        self.__dict__['MAIL_SUBJECT']           =   'subject'

        # =====( FTP）==========================================
        self.__dict__['FTP']                    =   'ftp'
        self.__dict__['FTP_FOLDER']             =   'ftpFolder'

        # =====( ピボット集計)==================================
        self.__dict__['PIVOT']                  =   'pivot'
        self.__dict__['PIVOT_SHEET_NAME']       =   'sheetName'
        self.__dict__['PIVOT_COLUMN_X']         =   'column_x'
        self.__dict__['PIVOT_COLUMN_Y']         =   'column_y'
        self.__dict__['PIVOT_COLUMN_SUM']       =   'column_sum'
        self.__dict__['PIVOT_TYPE']             =   'type'
        self.__dict__['PIVOT_TOTAL']            =   'total'
        self.__dict__['PIVOT_TOTAL_NAME']       =   'totalName'
        self.__dict__['PIVOT_CUMULATIVE_SUM']   =   'cumulativeSum'
        
        self.__dict__['PIVOT_CONVERT_YM']       =   'convertYM'
        self.__dict__['PIVOT_CONVERT_YM_SRC']   =   'src'
        self.__dict__['PIVOT_CONVERT_YM_TARGET'] =  'target'
        
        # =====( グラフ生成)=====================================
        self.__dict__['GRAPH']                  =   'graph'
        self.__dict__['GRAPH_TYPE']             =   'graphType'
        self.__dict__['GRAPH_DATA']             =   'data'
        self.__dict__['GRAPH_SHEET_NAME']       =   'sheetName'
        self.__dict__['GRAPH_POSITION']         =   'graphPosition'
        self.__dict__['GRAPH_GROUP']            =   'group'
        self.__dict__['GRAPH_STYLE']            =   'style'
        self.__dict__['GRAPH_X_UNITS']          =   'x_units'
        self.__dict__['GRAPH_Y_UNITS']          =   'y_units'
        self.__dict__['GRAPH_X_SIZE']           =   'x_size'
        self.__dict__['GRAPH_Y_SIZE']           =   'y_size'
        self.__dict__['GRAPH_TITLE']            =   'title'
        self.__dict__['GRAPH_X_AXIS']           =   'x_axis'
        self.__dict__['GRAPH_Y_AXIS']           =   'y_axis'
        
            
    def __setattr__(self, name, value):
        if name in self.__dict__:
            raise self.const_csv_excel_error("Can't rebind const (%s)" % name)
        self.__dict__[name] = value

sys.modules[__name__]=_csv_excel_const()