On 8/18/06, OriginalBrownster <[EMAIL PROTECTED]> wrote:

I'm posting this question because I'm having a brain fart...I had
posted this question earlier in the forums but didn't use the solution
because I found a work around.

i have a class in my model to store metadeta for a file

class Mdata(SQLObject):
        filepath = StringCol(length=200)
        filetitle= StringCol(length=200)
        uploadtime = StringCol(length=200)
        upload_user = StringCol(length=200)
        filetype = StringCol(length=200)
        keywords = StringCol(length=200)
        filedomain = StringCol(length = 10)
        abstract = StringCol(length=150)


now...the column filedomain stores a string (private or public),
depending on whether the file is private for the user or public to
everyone.

what i want to do is construct a select (ie Mdata.select(.....)) which
can display the column keywords for all entries where the
filedomain="public"

I tried using a list such as

public_keywords=[for myfile.kwords in myfile Mdata.select(....)] but it
didn't give me what i wanted
..

I was hoping someone had some ideas

a simple Mdata.selectBy(filedomain="public")  should suffice, no??


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