Hi,

>model.Owner.set(FirstName=kw["FIRSTNAME"],LastName=kw["LASTNAME"],UserID=kw["USERNAME"],
>EmailGiven=kw["EMAIL"], PhoneNbr=kw["PHONE"],Password=kw["PASSWORD1"])
>  
>
myowner = model.Owner()

myowner.set(FirstName=kw["FIRSTNAME"],LastName=kw["LASTNAME"],UserID=kw["USERNAME"],
EmailGiven=kw["EMAIL"], PhoneNbr=kw["PHONE"],Password=kw["PASSWORD1"])

Enjoy!

Paul



>I get this error:
>TypeError: unbound method set() must be called with Owner instance as
>first argument (got nothing instead)
>
>I thought that this meant I had to create an instance of the storage
>class, but trying to do this:
>o=model.Owner()
>yeilds a long error ending with this:
><type 'exceptions.ValueError'>: Unknown SQL builtin type: <type
>'classobj'> for <class sqlobject.sqlbuilder.NoDefault at 0x860ca1c>
>
>and none of the tutorials I've looked at seems to require this.
>
>using the ipython debugger, I can assign to the class fine:
>
>In [1]: model.Owner.FirstName="Larry"
>In [2]: model.Owner.LastName="Gelbart"
>etc, but not at once, and I'm still unclear on how to commit the write
>(and the suggestions from the SQLObject docs don't seem to work:
>http://www.sqlobject.org/SQLObject.html#declaring-the-class
>http://www.sqlobject.org/SQLObject.html#using-the-class
>
>
>I'm clearly missing something important.  Anyone care to rub my nose
>in it?
>
>TIA
>Harry
>
>>
>
>  
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to