Scripper schrieb:
> The point is that it turned out to return '[u'1', u'1']'. This makes
> me very confused!
>
> On Aug 18, 1:25 pm, Scripper <[EMAIL PROTECTED]> wrote:
>> hello,
>> here i have a question about CRUD, i found the 'update' couldn't work
>> as i clicked the button. Following is the trackback:
>> InterfaceError: (InterfaceError) Error binding parameter 2 - probably
>> unsupported type. u'UPDATE pages SET pagename=?, data=? WHERE pages.id
>> = ?' [u'asdasd', u'asd', [u'1', u'1']]
>> and the model:
>> pages_table = Table("pages", metadata,
>> Column("id", Integer, primary_key=True),
>> Column("pagename", Text),
>> Column("data", Text)
>> )
It confuses us as well, as you fail to provide
- controller code
- html form definition
- validation schemas if present
Judging from the above, I'd say you
- don't validate
- pass "id" several times via your HTML form.
Please consider reading
http://www.catb.org/~esr/faqs/smart-questions.html
to provide better questions in the future that lead to better answers,
or at least faster.
Diez
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---