Hey Stephen,
Here are some things to look at :

SQLObject uses Class naming conventions is a special way. The system may be
thinking that the class is a join between the 'Uploaded'  class and the 'File' class.
Try keeping the case lower after the leading upper case:

class Uploadedfile(SQLObject):
   ...

Could you supply the trace back so we can see what exceptions are raised?
Also check the uri in dev.cfg...
And make sure you did a 'tg-admin sql create' if need be.

Hope this helps,
Nick

On 7/25/06, OriginalBrownster <[EMAIL PROTECTED]> wrote:

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="" 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





--
--
Nicky Ayoub
G-Mail Account
--~--~---------~--~----~------------~-------~--~----~
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