Hello,

if I define like this:

db.define_table("TreeStructure",
      SQLField("name", "string",notnull=True, default=None),
      SQLField("parentID", db.TreeStructure))

I get
KeyError: 'TreeStructure' :/

how can I workaround?
I guess -- first create table, then alter it
but I am too busy to experiment and too used to plain sql:\

Thanks in advance :)

-- 
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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to