#655: Forms no longer honour action= in display method
----------------------+-----------------------------------------------------
Reporter: xentac | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone:
Component: Widgets | Version:
Severity: critical | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by michele):
Hi Jason,
I've tried your test on my local installation and all is working fine.
{{{
[EMAIL PROTECTED]:~/Progetti/TurboGears/svn/turbogears/widgets$ nosetests
.............................................................
----------------------------------------------------------------------
Ran 61 tests in 2.512s
OK
[EMAIL PROTECTED]:~/Progetti/TurboGears/svn/turbogears/widgets$
[EMAIL PROTECTED]:~/Progetti/TurboGears/svn/turbogears/widgets$ svn diff
Index: tests/test_forms.py
===================================================================
--- tests/test_forms.py (revision 918)
+++ tests/test_forms.py (working copy)
@@ -25,6 +25,7 @@
assert "Your Name" in output
assert 'NAME="name"' in output
assert "submit" in output
+ assert "mylocation" in output
def test_input_conversion():
"Input for the whole form can be validated and converted"
[EMAIL PROTECTED]:~/Progetti/TurboGears/svn/turbogears/widgets$
}}}
also:
{{{
#!python
>>> p = TableForm(name="test", fields=[TextField(name="hello")])
>>> p.render()
'<FORM ACTION="" NAME="test" METHOD="post">\n \n <TABLE
BORDER="0" >\n <TR>\n <TD>\n
<LABEL CLASS="fie ldlabel" FOR="hello">Hello</LABEL>\n
</TD>\n <TD>\ n <INPUT CLASS="textfield"
TYPE="text" ID="hello" NAME="hello ">\n \n
\n \n </TD>\n </TR>\n
<TR>\n <TD>\xc2\xa0</ TD>\n <TD>\n
<INPUT TYPE="submit" CLASS="submitbut ton">\n \n
</TD>\n </TR>\n </TAB LE>\n </FORM>'
>>> p.render(action="save")
'<FORM ACTION="save" NAME="test" METHOD="post">\n \n <TABLE
BORDER="0">\n <TR>\n <TD>\n
<LABEL CLASS="fieldlabel" FOR="hello">Hello</LABEL>\n
</TD>\n <TD>\n <INPUT CLASS="textfield"
TYPE="text" ID="hello" NAME="hello">\n \n
\n \n </TD>\n </TR>\n
<TR>\n <TD>\xc2\xa0</TD>\n <TD>\n
<INPUT TYPE="submit" CLASS="submitbutton">\n \n
</TD>\n </TR>\n </TABLE>\n </FORM>'
>>>
}}}
that's strange... :-/
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/655>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---