By the way: How are you solving problem with new creating new database? I mean do you check if the table exist? Because I am using this code:

try:
    alreadyUsed.createTable()
    Pathject.createTable() 
    print "I couldn´t find any table so I h´ve created one!"
   
except dberrors.OperationalError:
    pass
But I think it´s a dirty...  And one more thing: it would be nice if there was some direct link to http://wiki.sqlobject.org/ from http://www.sqlobject.org/ because on wiki are really useful information...


  1. do not top post, please

  2. try to reply/send to sqlobject-discuss@lists.sourceforge.net instead of the direct mail

  3. maybe you are looking for this:

    Pathject.dropTable(ifExists=True), Pathject.createTable(ifNotExists=True)

HTH

Petr