Révision 32cce7a8
Ajouté par Frédéric Péters il y a plus de 3 ans
auquotidien/modules/payments_ui.py | ||
---|---|---|
258 | 258 |
|
259 | 259 |
for infos in module.description['parameters']: |
260 | 260 |
name = infos['name'] |
261 |
caption = infos.get('caption', name).encode(get_publisher().site_charset)
|
|
262 |
title = banking_titles.get((self.regie.service, name), caption)
|
|
261 |
caption = infos.get('caption', name) |
|
262 |
title = force_str(banking_titles.get((self.regie.service, name), caption))
|
|
263 | 263 |
kwargs = {} |
264 | 264 |
widget = StringWidget |
265 | 265 |
if infos.get('help_text') is not None: |
266 |
kwargs['hint'] = _(infos['help_text'].encode(get_publisher().site_charset))
|
|
266 |
kwargs['hint'] = _(infos['help_text']) |
|
267 | 267 |
if infos.get('required', False): |
268 | 268 |
kwargs['required'] = True |
269 | 269 |
if infos.get('max_length') is not None: |
Formats disponibles : Unified diff
payments: do not encode eopayment strings (#50610)