コード例 #1
0
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import os

from l10n_ch_sepa.base_sepa.msg_sepa import MsgSEPAFactory
from l10n_ch_sepa.base_sepa.pain_001 import Pain001

_xsd_path = os.path.join('l10n_ch', 'xsd', 'pain.001.001.03.ch.02.xsd')
_tmpl_dirs = [os.path.join('l10n_ch', 'template')]
_tmpl_name = 'pain.001.001.03.ch.02.xml.mako'

MsgSEPAFactory.register_class('pain.001.ch',
                              Pain001,
                              xsd_path=_xsd_path,
                              tmpl_dirs=_tmpl_dirs,
                              tmpl_name=_tmpl_name)
コード例 #2
0
ファイル: pain_001_ch.py プロジェクト: Cywaithaka/LibrERP
#    it under the terms of the GNU Affero General Public License as
#    published by the Free Software Foundation, either version 3 of the
#    License, or (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU Affero General Public License for more details.
#
#    You should have received a copy of the GNU Affero General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import os

from l10n_ch_sepa.base_sepa.msg_sepa import MsgSEPAFactory
from l10n_ch_sepa.base_sepa.pain_001 import Pain001

_xsd_path = os.path.join('l10n_ch', 'xsd',
                         'pain.001.001.03.ch.02.xsd')
_tmpl_dirs = [os.path.join('l10n_ch', 'template')]
_tmpl_name = 'pain.001.001.03.ch.02.xml.mako'


MsgSEPAFactory.register_class('pain.001.ch', Pain001,
                              xsd_path=_xsd_path,
                              tmpl_dirs=_tmpl_dirs,
                              tmpl_name=_tmpl_name)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: