Hi, Thanks. My solution was:
if self.table_name not in db._migrated: self.install() Best regards. On Tuesday, April 16, 2013 3:31:12 PM UTC+2, dam...@gmail.com wrote: > > > Hi, > In my init class have a install() with create table. > When creates second instance, fail. > > <type 'exceptions.SyntaxError'> table already defined: mytable Version > web2py™ Version 2.4.6-stable+timestamp.2013.04.06.17.37.38 Python Python > 2.7.4: C:\Python27\python.exe (prefix: C:\Python27) > How check is this exists this table? > > In this moment, i add > > try: > self.install() #create table > except: > pass > > thanks! -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.