Thanks Oleg, it works!
Leandro
2007/1/24, Oleg Broytmann <[EMAIL PROTECTED]>:
> On Wed, Jan 24, 2007 at 04:04:07PM -0300, Leandro Melo de Sales wrote:
> > class Container(InheritableSQLObject):
> > container = ForeignKey('Container')
> >
> > 1: container1 = Container(title="the title")
> >
> > raise TypeError, "%s() did not get expected keyword argument %s" %
> > (self.__class__.__name__, col.name)
> > TypeError: Container() did not get expected keyword argument containerID
>
> You have defined a foreign key without a default hence Container asked
> you to provide one. Either provide one explicitly:
>
> 1: container1 = Container(title="the title", container=None)
>
> or define a default value for the column:
>
> class Container(InheritableSQLObject):
> container = ForeignKey('Container', default=None)
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
> Programmers don't die, they just GOSUB without RETURN.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> sqlobject-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss