#32 AbstractError not defined in SQLGenerator.py

closed-fixed
MiddleKit (4)
5
2004-10-07
2003-01-04
Mark Rowe
No

Generating SQL...
Traceback (most recent call last):
File
"/usr/local/share/Webware/MiddleKit/Design/Generate.py",
line 150, in ?
Generate().main(sys.argv)
File
"/usr/local/share/Webware/MiddleKit/Design/Generate.py",
line 81, in main
outdir=os.path.join(outdir, 'GeneratedSQL'))
File
"/usr/local/share/Webware/MiddleKit/Design/Generate.py",
line 146, in generate
generator.generate(outdir)
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 61, in generate
self._model.writeCreateSQL(self, dirname)
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 86, in writeCreateSQL
self._klasses.writeCreateSQL(generator,
os.path.join(dirname, 'Create.sql'))
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 221, in writeCreateSQL
self._writeCreateSQL(generator, out)
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 292, in _writeCreateSQL
klass.writeCreateSQL(self._sqlGenerator, out)
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 369, in writeCreateSQL
attr.writeCreateSQL(generator, out)
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 446, in writeCreateSQL
out.write('\t%s %s%s%s' % (name, self.sqlType(),
notNullSQL, defaultSQL))
File
"/usr/local/share/Webware/MiddleKit/Design/SQLGenerator.py",
line 467, in sqlType
raise AbstractError, self.__class__
NameError: global name 'AbstractError' is not defined

Discussion

  • Mark Rowe
    Mark Rowe
    2003-01-04

    Patch to import AbstractError from MiscUtils

     
    Attachments
    • status: open --> closed-fixed
     
  • Logged In: YES
    user_id=173690

    I just checked and this has been fixed in CVS.