On Fri, Jan 2, 2009 at 9:03 PM, sudhakar m <sudhakar...@gmail.com> wrote:

> My mistake. It should be
>
> db.define_table("Ground",
>       SQLField("won_by", db.Team),
>       # was: SQLField("Match_ids", *db.Match*)

      SQLField("Match_ids", *"text"*))


I think you mean to have SQLField("Match_ids", integer)  as the reference to
an id is an integer.  This is a good way to get around that db.Match is not
yet defined when db.Ground is being defined...

Regards,
Yarko

--~--~---------~--~----~------------~-------~--~----~
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