"Johnny Blonde" <[EMAIL PROTECTED]> writes:
> when i do the same thing in my tg controller, s is a list, too, but
> printing out:
> s[0][0] returns "(" instead of 34477
>
> what´s the best way to receive the tuples within turbogears just like
> i get them in the shell?
Remember that everything you get from the browser is a string. What is the
validator you're using to convert your data? For lists I usually use the Set
validator. With it, directly, you'd end up with a set of strings. Then you
could convert every string in this set to a tuple.
Take a look at FormEncode's docs and see if there's something for tuples.
> or is there a totally different way to pass my list of tuples from the
> form?
There might be, but there are means to make it work. ;-)
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---