From 244346dbcbe999bb921ee792ddc2ac222532cc56 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 22 Jan 2009 18:48:21 -0700 Subject: More work on xmlrpc stuff, started migrated more code to use errors2 instead of errors --- ipalib/parameters.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipalib/parameters.py') diff --git a/ipalib/parameters.py b/ipalib/parameters.py index fc688074..0cf6a1f7 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -353,6 +353,11 @@ class Param(ReadOnly): self.validate(value) return value + def safe_value(self, value): + if isinstance(self, Password) and value is not None: + return u'********' + return value + def clone(self, **overrides): """ Return a new `Param` instance similar to this one. -- cgit