I've simplified the issue: I don't think that foreign keys are working
properly in sqlobject:
REPRO:
ipython session (tg-admin shell)
1: p = Page(pagename="FooFoo")
4: dir(p)
'addColumn',
'addIndex',
'addJoin',
#model.py
class Page(SQLObject):
pagename = StringCol(alternateID=True, length=30)
entries = MultipleJoin('Entry')
class Entry(SQLObject):
data = StringCol()
page = ForeignKey('Page')
ERROR:
- there should be an addEntry in the Page object 'p'
Seems like this is a similar issue here:
http://groups.google.com/group/turbogears/browse_frm/thread/5c0db984a1a17e74/1772a1b8a0ac21bc#1772a1b8a0ac21bc