Message8271
When I was groveling through the template code, I came across this:
def _set_input_default_args(dic):
# 'text' is the default value anyway --
# but for CSS usage it should be present
dic.setdefault('type', 'text')
# useful e.g for HTML LABELs:
if 'id' not in dic:
try:
if dic['text'] in ('radio', 'checkbox'):
dic['id'] = '%(name)s-%(value)s' % dic
else:
dic['id'] = dic['name']
except KeyError:
pass
I think dic['text'] is wrong and dic['type'] was meant.
It looks like an attempt to create a series of
checkbox/radiobutton with unique id's.
Anybody have an alternate view? |
|
Date |
User |
Action |
Args |
2025-01-15 04:15:23 | rouilj | set | recipients:
+ rouilj |
2025-01-15 04:15:22 | rouilj | set | messageid: <1736914522.98.0.7686718395.issue2551391@roundup.psfhosted.org> |
2025-01-15 04:15:22 | rouilj | link | issue2551391 messages |
2025-01-15 04:15:22 | rouilj | create | |
|