Hello, I try to follow the Video shop example. When I generate the class.cvs file I always ends up with a failure <<middlekit.txt>> as described in the middlekit.txt file. The Classes.cvs is also included: <<Classes.csv>> I I have tried a lot of different ways to set the qoutes to make it works, but I am stucked. I have also checked the duscussion group without finding any solution.
Thanks in advance Dag .
Microsoft Windows 2000 [Version 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Python\Webware\Webware-0.8.1\MiddleKit\Videos\Middle>%middlekit%\Design\Generate.py --db MySQL --model Video Generating SQL... Traceback (most recent call last): File "C:\Python\webware\webware-0.8.1\Middlekit\Design\Generate.py", line 150, in ? Generate().main(sys.argv) File "C:\Python\webware\webware-0.8.1\Middlekit\Design\Generate.py", line 81, in main outdir=os.path.join(outdir, 'GeneratedSQL')) File "C:\Python\webware\webware-0.8.1\Middlekit\Design\Generate.py", line 143, in generate generator.readModelFileNamed(model, havePythonClasses=0) File "MiddleKit\Core\ModelUser.py", line 41, in readModelFileNamed File "MiddleKit\Core\Model.py", line 63, in read File "MiddleKit\Core\Model.py", line 84, in readKlasses File "MiddleKit\Core\Klasses.py", line 71, in read File "MiscUtils\DataTable.py", line 320, in __init__ File "MiscUtils\DataTable.py", line 335, in readFileNamed File "MiscUtils\DataTable.py", line 344, in readFile File "MiscUtils\DataTable.py", line 357, in readLines File "MiscUtils\DataTable.py", line 550, in __init__ File "MiscUtils\DataTable.py", line 560, in initFromSequence MiscUtils.DataTable.DataTableError: There are more values than headings. headings(7, [<TableColumn 'Class' with <type 'str'> at 8ea8a0>, <TableColumn 'Attribute' with <type 'str'> at 8ea918>, <TableColumn 'Type' with <type 'str'> at 8ea968>, <TableC olumn 'isRequired' with <type 'str'> at 8ea990>, <TableColumn 'Min' with <type 'str'> at 8ea9e0>, <TableColumn 'Max' with <type 'str'> at 8eaa08>, <TableColumn 'Extras;' with < type 'str'> at 8eaa30>]) values(14, ['', 'rating', 'enum', '1', '', '', "Enums='g", 'pg', 'pg13', 'r', 'nc17', 'x', 'nr', "other';"]) C:\Python\Webware\Webware-0.8.1\MiddleKit\Videos\Middle>
Classes.csv
Description: Classes.csv