On 3/27/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> Hmmmm...  It looks like it is similar to what I have.  I ran nosetests and it
> worked for me as well.
>
> Is it any different from a browser submitting the data?
>
>        url = 
> u"/checkform?foo.name=Kevin&foo.age=some%20NĂºmero".encode("utf-8")

The test is somewhat different in that your form is probably doing a
POST, and this test is simulating a GET. I wouldn't *expect* POST vs.
GET to make any difference in how filters are applied, though.

> And I see a difference in my controller.  I have:
>
>         kword['faixa']['superior']
>
> and you used:
>
>         newroot.foo["name"]
>
>
> Maybe I should use kword.faixa['superior'].

Nope. That's just a difference of how I'm doing the asserts in my
test... nothing to do with how you'd really implement a controller
like that (you'll note that the controller is just doing self.foo =
foo, which is something you certainly wouldn't do in a normal
controller).

Actually, now that I look at the error your presenting in this last
message, that's a different problem. In that error, you're trying to
set a database column to a dictionary. That's an application problem.

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to