diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-18 13:43:43 -0700 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-11-18 13:43:43 -0700 |
commit | 4afee15d4b523a641552bee9993882bb1ae6e2cc (patch) | |
tree | 907887251011a9979c65b7c7ab5b0e7c2e2fddef /ipalib/frontend.py | |
parent | 0a60a6bcc4c8eaa7d42dc25fa6fc69d837e3e816 (diff) | |
download | freeipa-4afee15d4b523a641552bee9993882bb1ae6e2cc.tar.gz freeipa-4afee15d4b523a641552bee9993882bb1ae6e2cc.tar.xz freeipa-4afee15d4b523a641552bee9993882bb1ae6e2cc.zip |
Calling 'passwd' command now prompts for password using textui.prompt_password()
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 61cba513..db399ba5 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -261,6 +261,13 @@ class Param(plugable.ReadOnly): self.primary_key = self.__check_type(bool, 'primary_key') lock(self) + def ispassword(self): + """ + Return ``True`` is this Param is a password. + """ + # FIXME: add unit test + return 'password' in self.flags + def __clone__(self, **override): """ Return a new `Param` instance similar to this one. |