You can use regex.

<code>
>>> import re
>>> print form.elements('input',_id=re.compile('auth_\d?'))
[<gluon.html.INPUT object at 0x101f86310>, <gluon.html.INPUT object at
0x101f86210>, <gluon.html.INPUT object at 0x101c42f10>, <gluon.html.INPUT
object at 0x101f83e90>]
</code>

--

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to