Hello
I have this class set up to handle a filename. I want to display all
the listing in abspath onto a kid template called private.kid...
abspath holds the filename and path of files uploaded to the data base.
==I tried to use the sample from the tutorial of displaying the
pagename==
class UploadedFile(SQLObject):
filename = StringCol(alternateID=True)
abspath = StringCol()
size = IntCol()
==I tried to use in the controller==
myfile = UploadedFile.byFilename(abspath)
file_path = [myfile.abspath for myfile in
UploadedFile.select(orderBy=UploadedFile.q.abspath)]
==and to display the abspaths on the template i tried ==
<ul>
<li py:for="abspath in file_path">${abspath}</li>
</ul>
Now this doesn't work so there must be something wrong somewhere
So if someone can help me I'd appreciate it
thanks
Stephen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---