Hi

I have the following in my model.py:

class Users(SQLObject):
    username = StringCol()
    password = StringCol()
    scripts = RelatedJoin('Scripts')

class Scripts(SQLObject):
    name = StringCol()
    authors = RelatedJoin('Users')

What I want to do is get a list of a users scripts.

I have tried doing:
author = User.get(id)
scripts = author.scripts

But this returns a list like:
[<Scripts 1 name='script_1'>,<Scripts 2 name='script_2'>,<Scripts 3
name='script_3'>]

But I actually only want the name of the script.

Is there another way to get around this?

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