|
From: John B. <jb...@dr...> - 2003-11-09 18:39:50
|
Hello,
I've got this:
class Story (SQLObject):
_connection = getConnection()
storyId = StringCol()
authorContact = ForeignKey("Contact")
date = IntCol()
title = StringCol()
summary = StringCol()
body = StringCol()
replies = MultipleJoin('Reply')
and
class Reply (SQLObject):
_connection = getConnection()
replyId = StringCol()
author = StringCol()
email = StringCol()
date = IntCol()
body = StringCol()
story = ForeignKey("Story")
yet I can't call addReply to an instance of Story:
File "./db.py", line 406, in buildDatabase
s.addReply(r)
AttributeError: 'Story' object has no attribute 'addReply'
Any thoughts?
John
--
John Baker,
(m) 07736393822
http://rant.pointful.info
|