Re: [web2py] V199.4 Error when define table in module and import it?

2012-02-28 Thread Bruno Rocha
try: from gluon import current from html import * from *gluon*.dal import Field import os def define(table_name): *T = current.T * db = current.globalenv['db'] auth= current.globalenv['auth'] if table_name not in db.tables: db.define_table(table_name,

Re: [web2py] V199.4 Error when define table in module and import it?

2012-02-28 Thread IVINH
Thank rochacbruno. Use gluon.dal instead gluon. Vào 15:08:17 UTC+7 Thứ ba, ngày 28 tháng hai năm 2012, rochacbruno đã viết: try: from gluon import current from html import * from *gluon*.dal import Field import os def define(table_name): *T = current.T * db =

Re: [web2py] V199.4 Error when define table in module and import it?

2012-02-28 Thread IVINH
Thanks. Use gluon.dal instead dal. Vào 15:08:17 UTC+7 Thứ ba, ngày 28 tháng hai năm 2012, rochacbruno đã viết: try: from gluon import current from html import * from *gluon*.dal import Field import os def define(table_name): *T = current.T * db =

[web2py] V199.4 Error when define table in module and import it?

2012-02-27 Thread IVINH
HI, Please help me for this error: Traceback (most recent call last): File E:\web2py1994\gluon\restricted.py, line 204, in restricted exec ccode in environment File E:/web2py1994/applications/app/controllers/plugin_attach.py