Hey, "class" is a reserved word in python, then you have to use:
On Mon, Nov 22, 2010 at 8:27 PM, Yohann REBATTU <[email protected]>wrote: > Hello, > > it seems to be impossible to set a class in a form with webhelper > > this would not work > ${h.form(url(controller='page', action='create'), method="post", > multipart=False, class='uni')} > ${h.form(url(controller='page', action='create'), method="post", multipart=False, class_='uni')} Watch the underline at the end of class parameter. but this would work > ${h.form(url(controller='page', action='create'), method="post", > multipart=False, test='uni')} > > but what i need in my form is a class not a test... > > i'm using webhelpers1.2 > > am i doing something wrong or is it a bug in webhelper-1.2? > > Thank you Hope it helps :) -- 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.
