O.o  knew it was simple :)  Thank you.

And you're right.  Just appending [0] to article using the select did indeed update it properly as well. Thanks again.


Nathan


p.s. it's always something silly that catches me :)

Lee McFadden wrote:
Nathan,

Your problem stems from the following line:

  
article = Article.select(Article.q.id==id)
    

This should be:

article = Article.get(id)

By using .select() you will be getting a selectresults object, not an
instance of your database object.  A SelectResults object is an
iterable and can potentially yield multiple SQLObjects.  .get()
returns the SQLObject with the given id.

Hope this helps,

Lee


  


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to