db.define_table(Field('university', length=128,default=''),)

is missing tablename

db.define_table('tablename',Field('university',
length=128,default=''),)

so it thinks the Field(..) is a tablename.

On Jun 24, 12:11 pm, Deepan <[email protected]> wrote:
> Hi,
>
> I am having an error in web2py app. I am not able to figure out what
> is causing the error. It would be of great help if any can figure out
> the error and let me know.
>
> Error is as follows:
>
> Traceback (most recent call last):
>   File "/cube/apps/web2py/gluon/restricted.py", line 178, in
> restricted
>     exec ccode in environment
>   File "/cube/apps/web2py/applications/rnai/models/db.py", line 34, in
> <module>
>     auth_table = db.define_table(Field('university', length=128,
> default=''),)
>   File "/cube/apps/web2py/gluon/sql.py", line 1262, in define_table
>     tablename = cleanup(tablename)
>   File "/cube/apps/web2py/gluon/sql.py", line 571, in cleanup
>     if re.compile('[^0-9a-zA-Z_]').findall(text):
> TypeError: expected string or buffer
>
> Thanks

Reply via email to