This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[messages] | |
I900=処理を開始します | |
I901=処理を終了します | |
I903=ファイルが存在しません:%s | |
I905=メールを送信しました | |
I906=書き込み対象のレコードが存在しません:テーブル=%s | |
I907=文字列の数字変換に失敗しました:%s | |
I990=%sの処理中です | |
E090=%sと%sでエラーが発生しました | |
E900=SQLエラーが発生しました:%s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
from app.util import db_access | |
""" | |
SQLコマンドを実行する | |
""" | |
__author__ = "t.ebinuma" | |
__version__ = "1.2" | |
__date__ = "9 July 2018" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
from util import db | |
""" | |
テーブル指定の共通的なSQLコマンドを実行する | |
""" | |
__author__ = "t.ebinuma" | |
__version__ = "1.1" | |
__date__ = "11 February 2018" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
## データファイルのプロパティ | |
################################################## | |
# データ(添付ファイル等)ファイルのディレクトリパス | |
data_path: {$python_path}/data/ | |
################################################## | |
## ログファイルのプロパティ | |
################################################## | |
# ログファイルのディレクトリパス |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
""" | |
ファイルアクセスを制御する | |
""" | |
import chardet | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
import os | |
from app.app_logic_base import AppLogicBase | |
from app.sql import employees | |
from app.util import app_config, message_access, date_helper | |
from app.util.file_access import get_file_encoding | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import configparser | |
import os | |
from app.util import app_config | |
""" | |
メッセージ出力を行う | |
""" | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
formatters: | |
customFormatter: | |
format: '[%(asctime)s] %(levelname)s - %(filename)s#%(funcName)s:%(lineno)d: %(message)s' | |
datefmt: '%Y/%m/%d %H:%M:%S' | |
handlers: | |
fileRotatingHandler: | |
formatter: customFormatter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
from app.app_logic_base import AppLogicBase | |
from app.util import message_access | |
""" | |
メッセージを出力するサンプルアプリケーションです | |
""" | |
__author__ = "t.ebinuma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf-8 | |
import logging | |
from app.app_logic_base import AppLogicBase | |
from app.enum.gender_type import GenderType | |
from app.sql import employees, departments | |
from app.util import date_helper | |
""" | |
DBアクセスするサンプルアプリケーションです |
OlderNewer