class RegisterSessions(SQLObject):
sessioncode = StringCol(length=255)
userid = ForeignKey("Users", cascade=True)
index1 = DatabaseIndex("sessioncode", unique=True)
try:
RegisterSessions.createTable()
print "Created table RegisterSessions"
except dberrors.OperationalError: pass
On Sat, Dec 13, 2008 at 1:29 PM, Oleg Broytmann <[email protected]> wrote:
> On Sat, Dec 13, 2008 at 12:52:08PM -0500, inhahe wrote:
>> TypeError: RegisterSessions() did not get expected keyword argument
>> 'useridID'
>
> Show us the declaration of the ForeignKey, plz.
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ [email protected]
> Programmers don't die, they just GOSUB without RETURN.
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you. Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> sqlobject-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss