Newbie here, but getting somewhere.  But I just hit this one problem,
the straightening out of which will hopefully also cure me of some
related misconceptions or poor assumptions.

In one of my mako templates, I have something like the following.  The
trouble I am having is with passing the value None through the form
submission.

<% foo = None %>

${h.form_remote_tag(url=h.url(action="DoXYZ", bar=foo), update="abc",
method="GET")}
${h.text_field(name="frobnitz")}
${h.submit(value='save', name='commit')}
${h.end_form()}

<div id="abc"></div>


...now when the request reaches the controller:

bar = request.params['bar']

... and at this point, unfortunately the value of bar is u'None' .. a
text string rather than the actual python None.

Why does that happen?  It is easy to write an ugly workaround for it,
but instead I'm trying to understand better what's behind it and
hopefully my rewritten solution will stay more elegant.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to