On 18/10/2011 15:24, Massimo Di Pierro wrote:
One problem I see is this:
try: db io
except Exception: ....
On exception you should explicitly rollback
try: db io
except Exception: db.rollback()
interesting point... i'll try and report
I also do not know why you defined
m_wind_table = db.Table(db, 'm_wind_10min', base_table,
Field(...), ...)
instead of
m_wind_table = db.define_table('m_wind_10min', base_table,
Field(...), ...)
You do not want the table to be created?
yes I want, I just forgot to cut&paste thees lines after sorry:
db.define_table('m_wind_10min',
m_wind_table,
migrate=settings.migrate # True
)
thank you very much
Manuele