---------- Forwarded message ----------
From: Luke Nelson <[EMAIL PROTECTED]>
Date: Feb 28, 2006 12:53 AM
Subject: CRUD
To: Kevin Dangoor <[EMAIL PROTECTED]>
Hey feel free to forward this to the list if you think it might help others.
I am trying my hand at using crud to add users:
users = DataController(sql_class=TG_User)
Now, I don't have any users yet, so I go to "Add a record"
So far so good, it comes up nicely, but when I submit my new data I get
Page handler: <bound method DataController.create of
<turbogears.fastdata.datacontroller.DataController object at
0x11021b0>>
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 99, in _run
self.main()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/cherrypy/_cphttptools.py",
line 247, in main
body = page_handler(*virtual_path, **self.params)
File "<string>", line 3, in create
File "/Users/lucas/dev/vsx/third-party/turbogears/turbogears/controllers.py",
line 111, in validate
form_ = form(args[0])
IndexError: tuple index out of range
Any idea what the problem is here. I've searched the mailing list
archives but I haven't found anything that seems to answer this.
Thanks in advance.
Lucas.-
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---