On Thu, Oct 11, 2012 at 11:26 PM, ozwyzard <[email protected]> wrote:
> What if you were to pack it, encrypt the parameters using a key (and
> pycrypto package), then encode it into a string (e.g. hex string) and pass
> it as 'one' parameter. For an incoming parameter you would then decode it
> first and decrypt and unpack. This will also prevent exposing DB fields to
> the world.
Depending on the size of the array being passed around, that could be
a bad idea. After all, it has to be downloaded by the client, then
uploaded back to the server. In fact, I disagree with that unless it's
absolutely necessary.
As for the original question, I would probably do something like this:
<a href="${tg.url('/new_url?')}${"&".join([lambda x: "%s=%s" % (x,
params[x]) for x in params])}">Link Text Here</a>
And make sure that params is a dict with all the parameters I want to
pass around.
--
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: [email protected] -- Twitter: pedersentg
--
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.