Skip to content

Commit 01d4015

Browse files
committed
finvoice validation
1 parent 86b85cc commit 01d4015

File tree

63 files changed

+4017
-171
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+4017
-171
lines changed

finvoice/finvoice.py

Lines changed: 2802 additions & 166 deletions
Large diffs are not rendered by default.

finvoice/finvoicesubs.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# it under the terms of the GNU General Public License as published by
1010
# the Free Software Foundation, either version 3 of the License, or
1111
# (at your option) any later version.
12-
#
12+
#
1313
# py-finvoice is distributed in the hope that it will be useful,
1414
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1515
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -19,9 +19,13 @@
1919
# along with py-finvoice. If not, see <http://www.gnu.org/licenses/>.
2020
##
2121

22+
# Command line:
23+
# /usr/local/bin/generateDS.py -s "finvoice/finvoicesubs.py" -o "finvoice/finvoice.py" --super="finvoice.finvoice" --external-encoding="iso8859-15" --no-dates --no-versions --validator-bodies="stubs/validator/finvoice/" --user-methods="generators.gends_user_methods_finvoice" xsd/Finvoice.xsd
24+
25+
2226
import sys
2327

24-
import finvoice as supermod
28+
import finvoice.finvoice as supermod
2529

2630
etree_ = None
2731
Verbose_import_ = False
@@ -82,7 +86,7 @@ def parsexml_(*args, **kwargs):
8286
# Globals
8387
#
8488

85-
ExternalEncoding = 'ascii'
89+
ExternalEncoding = 'iso8859-15'
8690

8791
#
8892
# Data representation classes
@@ -789,8 +793,8 @@ def parseLiteral(inFilename, silence=False):
789793
# Enable Python to collect the space used by the DOM.
790794
doc = None
791795
if not silence:
792-
sys.stdout.write('#from ??? import *\n\n')
793-
sys.stdout.write('import ??? as model_\n\n')
796+
sys.stdout.write('#from finvoice.finvoice import *\n\n')
797+
sys.stdout.write('import finvoice.finvoice as model_\n\n')
794798
sys.stdout.write('rootObj = model_.rootClass(\n')
795799
rootObj.exportLiteral(sys.stdout, 0, name_=rootTag)
796800
sys.stdout.write(')\n')

0 commit comments

Comments
 (0)