Hi there.

I want to make a tag like this:

<form action="go" accept-charset="utf-8" class="goform">

Of course, "accept-charset" is an expression in Python, not a valid
identifier. I'm aware that for reserved words, we append an underscore
(class -> class_) but is there a proper way to send "accept-charset"?

I ended up with this, but it seems not the nicest way:

tags.form("go", class_="goform", **{'accept-charset':"utf-8"})

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