if you leverage db.define_table that doesn't happen.
If you do it all by hand, either you 
try: 
    select 1 from table
except:
   pass

or you do what you're doing (or you store somewhere that you don't need to 
"install()" every time ^_^)

On Tuesday, April 16, 2013 3:31:12 PM UTC+2, [email protected] 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to