|
9 | 9 | # it under the terms of the GNU General Public License as published by |
10 | 10 | # the Free Software Foundation, either version 3 of the License, or |
11 | 11 | # (at your option) any later version. |
12 | | -# |
| 12 | +# |
13 | 13 | # py-finvoice is distributed in the hope that it will be useful, |
14 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 | 19 | # along with py-finvoice. If not, see <http://www.gnu.org/licenses/>. |
20 | 20 | ## |
21 | 21 |
|
| 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 | + |
22 | 26 | import sys |
23 | 27 |
|
24 | | -import finvoice as supermod |
| 28 | +import finvoice.finvoice as supermod |
25 | 29 |
|
26 | 30 | etree_ = None |
27 | 31 | Verbose_import_ = False |
@@ -82,7 +86,7 @@ def parsexml_(*args, **kwargs): |
82 | 86 | # Globals |
83 | 87 | # |
84 | 88 |
|
85 | | -ExternalEncoding = 'ascii' |
| 89 | +ExternalEncoding = 'iso8859-15' |
86 | 90 |
|
87 | 91 | # |
88 | 92 | # Data representation classes |
@@ -789,8 +793,8 @@ def parseLiteral(inFilename, silence=False): |
789 | 793 | # Enable Python to collect the space used by the DOM. |
790 | 794 | doc = None |
791 | 795 | 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') |
794 | 798 | sys.stdout.write('rootObj = model_.rootClass(\n') |
795 | 799 | rootObj.exportLiteral(sys.stdout, 0, name_=rootTag) |
796 | 800 | sys.stdout.write(')\n') |
|
0 commit comments