On Jan 10, 2008 4:14 PM, Matt Billenstein <[EMAIL PROTECTED]> wrote:
> 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")}

The function is passing a dict of **options recursively through
several nested function calls, and one of them is conflicting with a
positional argument.  The interactive traceback probably stopped at
the template rather than going inside it -- at least I've seen this on
other occasions -- but you can mimic the call in "paster shell".

=============
$ paster shell --disable-ipython development.ini
Pylons Interactive Shell
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]

  All objects from rlink.lib.base are available
  Additional Objects:
  mapper     -  Routes mapper object
  wsgiapp    -  This project's WSGI App instance
  app        -  paste.fixture wrapped around wsgiapp

>>> h.form_remote_tag(html=dict(name="inputform"),
url='/ui/select_results', update="select_results")
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File 
"/home/mso/venv/rlink/lib/python2.5/site-packages/WebHelpers-0.3.2-py2.5.egg/webhelpers/rails/prototype.py",
line 184, in form_remote_tag
    return form(action, **options['html'])
  File 
"/home/mso/venv/rlink/lib/python2.5/site-packages/WebHelpers-0.3.2-py2.5.egg/webhelpers/rails/form_tag.py",
line 46, in form
    return tag("form", True, **options) + method_tag
TypeError: tag() got multiple values for keyword argument 'name'
>>>
================


I've added a ticket for this.
http://pylonshq.com/project/pylonshq/ticket/357

In the meantime you may have to either call tag() yourself or figure
out what HTML/Javascript it would have returned and put that
literally.

-- 
Mike Orr <[EMAIL PROTECTED]>

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