How would I add an entry to the database for the class shown below
through the shell
I believe you will have to use r"" so all those special symbols get set right. like the \
for filename and abspath
class UploadedFile(SQLObject):
filename = StringCol(alternateID=True)
abspath = StringCol(length=255)
I am asking because I just ran tg-admin sql drop and cleared out my
tables and then recreated them to add some models.
However now I can only add 1 entry to UploadedFile then the toolbox
will not let me add any others. It simply does not show the tables
that seems like a bug in catwalk, did you scaped correctly the / or \ in the path? can you go directly into the db and do a query to see exactly what got there?
Thanks for the help
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
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] Adding data to Database through shell/ tool... OriginalBrownster
- [TurboGears] Re: Adding data to Database through sh... Jorge Vargas
- [TurboGears] Re: Adding data to Database throug... OriginalBrownster
- [TurboGears] Re: Adding data to Database through sh... Alberto Valverde

