Hello:
I am a new TG user and am having a small bit of trouble with getting
mysql to work.  I have the TG book and have looked on the web site for
help.  My problem is probably simple.  I have installed mysql (on
Fedora) and have created a database named "mix" with a table in it
named "users".  The table "users" has a column named "first" for first
name.  I created this database structure without use of TG.  I have
also modified my dev.cfg file to include the line :

sqlobject.dburi="mysql://[EMAIL PROTECTED]/mix"

I can access the mysql database via MySql Administrator using the
username john and an appropriate password.  I have also created a
class named users in the model.py file:

class users(SQLObject):
    class sqlmeta:
        table = 'tg_users'

The trouble is, when I try to enter data into "users" via:
tg-admin shell
users(first="kk")

I get the following error message:

TypeError: users.set() got an unexpected keyword argument first

Im sure I have something simple wrong.  Can anyone suggest what it is?
Thanks,  John


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