--- a/web/formwidgets.py Mon Dec 21 19:45:24 2009 +0100
+++ b/web/formwidgets.py Mon Dec 21 19:52:21 2009 +0100
@@ -10,11 +10,12 @@
from datetime import date
from warnings import warn
+from logilab.mtconverter import xml_escape
+from logilab.common.deprecation import deprecated
+
from cubicweb import tags, uilib
from cubicweb.web import stdmsgs, INTERNAL_FIELD_VALUE, ProcessFormError
-from logilab.mtconverter import xml_escape
-
class FieldWidget(object):
"""abstract widget class"""
# javascript / css files required by the widget
@@ -125,6 +126,7 @@
return passwd1.encode('utf-8')
raise ProcessFormError(form._cw._("password and confirmation don't match"))
+
class PasswordSingleInput(Input):
"""<input type='password'> without a confirmation field"""
type = 'password'
@@ -135,6 +137,7 @@
return value.encode('utf-8')
return value
+
class FileInput(Input):
"""<input type='file'>"""
type = 'file'