hello,

I generated initial db structure with wwwsqldesigner,
now I get
Traceback (most recent call last):
  File "/home/www/web2py/gluon/restricted.py", line 98, in restricted
    exec ccode in environment
  File "/home/www/web2py/applications/all_ways_wui/models/db.py", line
35, in <module>
    SQLField("timestamp", "date"),
  File "/home/www/web2py/gluon/sql.py", line 926, in define_table
    raise SyntaxError, 'invalid table name'
SyntaxError: invalid table name


when I use
db = SQLDB('sqlite://storage.db')  # if not, use SQLite or other DB


db.define_table("items",
      SQLField("progwww", "string", ),
      SQLField("importance", "integer"),
      SQLField("about", "text", ),
      SQLField("timestamp", "date"),
      )


and don't get the error, if I do

db.define_table("items",
      SQLField("progwww", "string", ),
      SQLField("importance", "integer"),
      SQLField("about", "text", ),
      #SQLField("timestamp", "date"),
      )

if I change SQLField  to db.Field, it doesn't help...

Thanks in advance for suggestions :)
-- 
Jurgis Pralgauskis
Don't worry, be happy and make things better ;)
http://sagemath.visiems.lt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to