Skip to content

Commit

Permalink
Adds a password-variant widget
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@5548 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
taher committed Sep 24, 2010
1 parent 25f8a38 commit 803bfd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CTK/TextField.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ def __init__ (self, key, optional=False, props={}):
TextField.__init__ (self, props)


class TextCfgPassword (TextCfg):
def __init__ (self, *a, **kw):
TextCfg.__init__ (self, *a, **kw)
self.type = "password"



JS = """
$("#%(id)s")
Expand Down
2 changes: 1 addition & 1 deletion CTK/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Widgets
from Table import Table, TableFixed
from RawHTML import RawHTML
from TextField import TextField, TextFieldPassword, TextCfg, TextCfgAuto
from TextField import TextField, TextFieldPassword, TextCfg, TextCfgPassword, TextCfgAuto
from Checkbox import Checkbox, CheckCfg, CheckboxText, CheckCfgText
from Combobox import Combobox, ComboCfg
from PropsTable import PropsTable, PropsTableAuto, PropsAuto
Expand Down

0 comments on commit 803bfd8

Please sign in to comment.