equal
deleted
inserted
replaced
313 """Simple <input type='text'>, will return a unicode string.""" |
313 """Simple <input type='text'>, will return a unicode string.""" |
314 type = 'text' |
314 type = 'text' |
315 |
315 |
316 |
316 |
317 class PasswordSingleInput(Input): |
317 class PasswordSingleInput(Input): |
318 """Simple <input type='password'>, will return an utf-8 encoded string. |
318 """Simple <input type='password'>, will return a utf-8 encoded string. |
319 |
319 |
320 You may prefer using the :class:`~cubicweb.web.formwidgets.PasswordInput` |
320 You may prefer using the :class:`~cubicweb.web.formwidgets.PasswordInput` |
321 widget which handles password confirmation. |
321 widget which handles password confirmation. |
322 """ |
322 """ |
323 type = 'password' |
323 type = 'password' |
330 |
330 |
331 |
331 |
332 class PasswordInput(Input): |
332 class PasswordInput(Input): |
333 """<input type='password'> and a confirmation input. Form processing will |
333 """<input type='password'> and a confirmation input. Form processing will |
334 fail if password and confirmation differs, else it will return the password |
334 fail if password and confirmation differs, else it will return the password |
335 as an utf-8 encoded string. |
335 as a utf-8 encoded string. |
336 """ |
336 """ |
337 type = 'password' |
337 type = 'password' |
338 |
338 |
339 def _render(self, form, field, renderer): |
339 def _render(self, form, field, renderer): |
340 assert self.suffix is None, 'suffix not supported' |
340 assert self.suffix is None, 'suffix not supported' |