On Thu, Jan 10, 2008 at 12:49:44PM -0800, Mike Orr wrote:
> On Jan 10, 2008 12:27 PM, Matt Billenstein <[EMAIL PROTECTED]> wrote:
> >
> > Okay, posted too soon, this works:
> >
> > <%
> > s = h.form_remote_tag(html={"id":"inputform"}, url='/ui/select_results',
> > update="select_results")
> > %>
> > ${s}
> >
> > Seems mako doesn't like the {} for the dict inside a ${...}
> 
> That's a Mako bug.
> 
> http://www.makotemplates.org/trac/ticket/20

Now makes sense why I see the docs using dict(x="blah"):

${h.form_remote_tag(html=dict(id="inputform"), url='/ui/select_results', 
update="select_results")}

to get around this bug.

Also, any ideas why I can't specify the name here too?  I get:

exceptions.TypeError: tag() got multiple values for keyword argument 'name'

When doing:

${h.form_remote_tag(html=dict(name="inputform"), url='/ui/select_results', 
update="select_results")}

thx

m

> -- 
> Mike Orr <[EMAIL PROTECTED]>
> 
> > 

-- 
Matt Billenstein
[EMAIL PROTECTED]
http://www.vazor.com/

--~--~---------~--~----~------------~-------~--~----~
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